mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
gadget: single_open() leaks
Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
bae301d346
commit
962a1ab21e
@ -2211,7 +2211,7 @@ static const struct file_operations fsl_proc_fops = {
|
|||||||
.open = fsl_proc_open,
|
.open = fsl_proc_open,
|
||||||
.read = seq_read,
|
.read = seq_read,
|
||||||
.llseek = seq_lseek,
|
.llseek = seq_lseek,
|
||||||
.release = seq_release,
|
.release = single_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define create_proc_file() proc_create(proc_filename, 0, NULL, &fsl_proc_fops)
|
#define create_proc_file() proc_create(proc_filename, 0, NULL, &fsl_proc_fops)
|
||||||
|
@ -1214,7 +1214,7 @@ static const struct file_operations udc_proc_fops = {
|
|||||||
.open = udc_proc_open,
|
.open = udc_proc_open,
|
||||||
.read = seq_read,
|
.read = seq_read,
|
||||||
.llseek = seq_lseek,
|
.llseek = seq_lseek,
|
||||||
.release = seq_release,
|
.release = single_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* CONFIG_USB_GADGET_DEBUG_FILES */
|
#endif /* CONFIG_USB_GADGET_DEBUG_FILES */
|
||||||
|
Loading…
Reference in New Issue
Block a user