gadget: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:16:11 +0000 (00:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:16:11 +0000 (00:16 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/usb/gadget/fsl_udc_core.c
drivers/usb/gadget/goku_udc.c

index 2d8c1cfea6993fc53ec2ad34f3f128aa6d4fad16..a766a4ca1cb78ff627b3de85b4a4aac01713cd38 100644 (file)
@@ -2211,7 +2211,7 @@ static const struct file_operations fsl_proc_fops = {
        .open           = fsl_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 #define create_proc_file()     proc_create(proc_filename, 0, NULL, &fsl_proc_fops)
index 480eeb7cfd92d9a9010c804ca932da44dc17ec20..52dd6cc6c0aa2e3e016eedced4fa00f61dafb896 100644 (file)
@@ -1214,7 +1214,7 @@ static const struct file_operations udc_proc_fops = {
        .open           = udc_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 #endif /* CONFIG_USB_GADGET_DEBUG_FILES */