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:
Коммит
45c680b994
|
@ -348,8 +348,10 @@ static void klp_disable_func(struct klp_func *func)
|
|||
{
|
||||
struct klp_ops *ops;
|
||||
|
||||
WARN_ON(func->state != KLP_ENABLED);
|
||||
WARN_ON(!func->old_addr);
|
||||
if (WARN_ON(func->state != KLP_ENABLED))
|
||||
return;
|
||||
if (WARN_ON(!func->old_addr))
|
||||
return;
|
||||
|
||||
ops = klp_find_ops(func->old_addr);
|
||||
if (WARN_ON(!ops))
|
||||
|
|
Загрузка…
Ссылка в новой задаче