From: Andrei Epure Date: Wed, 17 Apr 2013 22:58:24 +0000 (-0700) Subject: drivers/video/mmp/core.c: fix use-after-free bug X-Git-Tag: v3.9-rc8~17^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d875cf08391a811703f8adf39db598cac9ece6a1;p=thirdparty%2Fkernel%2Flinux.git drivers/video/mmp/core.c: fix use-after-free bug Found with coccinelle. Signed-off-by: Andrei Epure Cc: Florian Tobias Schandinat Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/mmp/core.c b/drivers/video/mmp/core.c index 9ed83419038bb..84de2632857a3 100644 --- a/drivers/video/mmp/core.c +++ b/drivers/video/mmp/core.c @@ -252,7 +252,5 @@ void mmp_unregister_path(struct mmp_path *path) kfree(path); mutex_unlock(&disp_lock); - - dev_info(path->dev, "de-register %s\n", path->name); } EXPORT_SYMBOL_GPL(mmp_unregister_path);