Skip to content
Commit 2a643893 authored by Devendra Naga's avatar Devendra Naga Committed by Linus Torvalds
Browse files

drivers/rtc/rtc-spear.c: fix use-after-free in spear_rtc_remove()



`config' is freed and is then used in the rtc_device_unregister() call,
causing a kernel panic.

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Reviewed-by: default avatarViresh Kumar <viresh.linux@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d8adde17
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment