diff options
| author | Petr Mladek <[email protected]> | 2017-10-20 14:56:51 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2017-10-26 12:58:50 +0000 |
| commit | 89a9a1c1c89cea5f70975c338c011b9f7024dee5 (patch) | |
| tree | 55d3fd12dba578268abe0b95e46db6f2d6e86034 /net/unix/af_unix.c | |
| parent | livepatch: Correctly call klp_post_unpatch_callback() in error paths (diff) | |
| download | kernel-89a9a1c1c89cea5f70975c338c011b9f7024dee5.tar.gz kernel-89a9a1c1c89cea5f70975c338c011b9f7024dee5.zip | |
livepatch: __klp_disable_patch() should never be called for disabled patches
__klp_disable_patch() should never be called when the patch is not
enabled. Let's add the same warning that we have in __klp_enable_patch().
This allows to remove the check when calling klp_pre_unpatch_callback().
It was strange anyway because it repeatedly checked per-patch flag
for each patched object.
Signed-off-by: Petr Mladek <[email protected]>
Acked-by: Joe Lawrence <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
