summaryrefslogtreecommitdiffstats
path: root/include/net/inet_sock.h
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2017-10-20 16:56:51 +0200
committerJiri Kosina <jkosina@suse.cz>2017-10-26 14:58:50 +0200
commit89a9a1c1c89cea5f70975c338c011b9f7024dee5 (patch)
tree55d3fd12dba578268abe0b95e46db6f2d6e86034 /include/net/inet_sock.h
parent5aaf1ab55389aeb6ce5527580a1a4d4dbc0f41ff (diff)
downloadlinux-89a9a1c1c89cea5f70975c338c011b9f7024dee5.tar.gz
linux-89a9a1c1c89cea5f70975c338c011b9f7024dee5.tar.bz2
linux-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 <pmladek@suse.com> Acked-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/net/inet_sock.h')
0 files changed, 0 insertions, 0 deletions