diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-12-25 10:51:15 +0800 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2022-01-04 13:57:19 +0100 |
commit | 50a0f3f55e382b313e7cbebdf8ccf1593296e16f (patch) | |
tree | ab01a2e48db5584faa5ef7e98ab31a5fc5b49bed /include | |
parent | 5ef3dd20555e8e878ac390a71e658db5fd02845c (diff) | |
download | linux-stable-50a0f3f55e382b313e7cbebdf8ccf1593296e16f.tar.gz linux-stable-50a0f3f55e382b313e7cbebdf8ccf1593296e16f.tar.bz2 linux-stable-50a0f3f55e382b313e7cbebdf8ccf1593296e16f.zip |
livepatch: Fix missing unlock on error in klp_enable_patch()
Add missing unlock when try_module_get() fails in klp_enable_patch().
Fixes: 5ef3dd20555e8e8 ("livepatch: Fix kobject refcount bug on klp_init_patch_early failure path")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: David Vernet <void@manifault.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20211225025115.475348-1-yangyingliang@huawei.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions