Commit d4062fcb authored by Ming Lei's avatar Ming Lei Committed by Greg Kroah-Hartman
Browse files

USB: Fix memory leak in mon_stat_release

Fix the leak of the snap structure allocated in mon_stat_open().
Signed-off-by: default avatarMing Lei <>
Acked-by: default avatarPete Zaitcev <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 59fba744
......@@ -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;
return 0;
Markdown is supported
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