Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching
Pull livepatching fix from Jiri Kosina: "Livepatching error handling fix" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching: livepatch: Improve error handling in klp_disable_func()
This commit is contained in:
commit
45c680b994
|
@ -348,8 +348,10 @@ static void klp_disable_func(struct klp_func *func)
|
||||||
{
|
{
|
||||||
struct klp_ops *ops;
|
struct klp_ops *ops;
|
||||||
|
|
||||||
WARN_ON(func->state != KLP_ENABLED);
|
if (WARN_ON(func->state != KLP_ENABLED))
|
||||||
WARN_ON(!func->old_addr);
|
return;
|
||||||
|
if (WARN_ON(!func->old_addr))
|
||||||
|
return;
|
||||||
|
|
||||||
ops = klp_find_ops(func->old_addr);
|
ops = klp_find_ops(func->old_addr);
|
||||||
if (WARN_ON(!ops))
|
if (WARN_ON(!ops))
|
||||||
|
|
Loading…
Reference in New Issue