aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-05-05 00:16:11 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-05 00:16:11 -0400
commit962a1ab21e7ca2a1a1ac955cc33fbc6abffb59d1 (patch)
treeec9d2681fb9d90630a0d22f92ea8af6d5ce9023d /drivers/usb/gadget
parentbae301d34652e1aa8d8e63198d2dcc84dc612517 (diff)
gadget: single_open() leaks
Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/fsl_udc_core.c2
-rw-r--r--drivers/usb/gadget/goku_udc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c
index 2d8c1cfea699..a766a4ca1cb7 100644
--- a/drivers/usb/gadget/fsl_udc_core.c
+++ b/drivers/usb/gadget/fsl_udc_core.c
@@ -2211,7 +2211,7 @@ static const struct file_operations fsl_proc_fops = {
2211 .open = fsl_proc_open, 2211 .open = fsl_proc_open,
2212 .read = seq_read, 2212 .read = seq_read,
2213 .llseek = seq_lseek, 2213 .llseek = seq_lseek,
2214 .release = seq_release, 2214 .release = single_release,
2215}; 2215};
2216 2216
2217#define create_proc_file() proc_create(proc_filename, 0, NULL, &fsl_proc_fops) 2217#define create_proc_file() proc_create(proc_filename, 0, NULL, &fsl_proc_fops)
diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c
index 480eeb7cfd92..52dd6cc6c0aa 100644
--- a/drivers/usb/gadget/goku_udc.c
+++ b/drivers/usb/gadget/goku_udc.c
@@ -1214,7 +1214,7 @@ static const struct file_operations udc_proc_fops = {
1214 .open = udc_proc_open, 1214 .open = udc_proc_open,
1215 .read = seq_read, 1215 .read = seq_read,
1216 .llseek = seq_lseek, 1216 .llseek = seq_lseek,
1217 .release = seq_release, 1217 .release = single_release,
1218}; 1218};
1219 1219
1220#endif /* CONFIG_USB_GADGET_DEBUG_FILES */ 1220#endif /* CONFIG_USB_GADGET_DEBUG_FILES */