projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: Fix memory leak in mon_stat_release
[deliverable/linux.git]
/
drivers
/
usb
/
mon
/
mon_stat.c
diff --git
a/drivers/usb/mon/mon_stat.c
b/drivers/usb/mon/mon_stat.c
index f6d1491256c4453ebfb1b06f2a908b4c29d364fd..c7a595cd648ae2b2f473390b94d0f89b0fb2214f 100644
(file)
--- a/
drivers/usb/mon/mon_stat.c
+++ b/
drivers/usb/mon/mon_stat.c
@@
-59,6
+59,9
@@
static ssize_t mon_stat_read(struct file *file, char __user *buf,
static int mon_stat_release(struct inode *inode, struct file *file)
{
+ struct snap *sp = file->private_data;
+ file->private_data = NULL;
+ kfree(sp);
return 0;
}
This page took
0.024716 seconds
and
5
git commands to generate.