diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/mon/mon_stat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/mon/mon_stat.c b/drivers/usb/mon/mon_stat.c index f6d1491256c4..c7a595cd648a 100644 --- 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, | |||
59 | 59 | ||
60 | static int mon_stat_release(struct inode *inode, struct file *file) | 60 | static int mon_stat_release(struct inode *inode, struct file *file) |
61 | { | 61 | { |
62 | struct snap *sp = file->private_data; | ||
63 | file->private_data = NULL; | ||
64 | kfree(sp); | ||
62 | return 0; | 65 | return 0; |
63 | } | 66 | } |
64 | 67 | ||