mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-20 11:34:02 +08:00
drivers/video/mmp/core.c: fix use-after-free bug
Found with coccinelle. Signed-off-by: Andrei Epure <epure.andrei@gmail.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
355f1ecbcc
commit
d875cf0839
@ -252,7 +252,5 @@ void mmp_unregister_path(struct mmp_path *path)
|
|||||||
|
|
||||||
kfree(path);
|
kfree(path);
|
||||||
mutex_unlock(&disp_lock);
|
mutex_unlock(&disp_lock);
|
||||||
|
|
||||||
dev_info(path->dev, "de-register %s\n", path->name);
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(mmp_unregister_path);
|
EXPORT_SYMBOL_GPL(mmp_unregister_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user