projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79e95eb
)
radio_si470x: Fix free memory corruption
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Wed, 22 Apr 2009 14:03:15 +0000
(15:03 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 24 Apr 2009 14:52:08 +0000
(07:52 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/media/radio/radio-si470x.c
b/drivers/media/radio/radio-si470x.c
index
92c2977
..
bd945d0
100644
(file)
--- a/
drivers/media/radio/radio-si470x.c
+++ b/
drivers/media/radio/radio-si470x.c
@@
-1200,7
+1200,7
@@
static int si470x_fops_release(struct file *file)
video_unregister_device(radio->videodev);
kfree(radio->buffer);
kfree(radio);
- goto
unlock
;
+ goto
done
;
}
/* stop rds reception */