]> git.baikalelectronics.ru Git - kernel.git/commit
radio_si470x: Fix free memory corruption
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Wed, 22 Apr 2009 14:03:15 +0000 (15:03 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Apr 2009 14:52:08 +0000 (07:52 -0700)
commit4521371458b78d2b8d13a12385c9c48f2b29132d
treea2426e9f1b0d288105b6be6fb992a00489f2b204
parent05e9a347a9518ee08f548a0e7c7898b03487f77c
radio_si470x: Fix free memory corruption

The release path for a disconnected device frees the object then unlocks
the mutex in the freed object...

Found by Dan Carpenter using Smatch

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/radio/radio-si470x.c