]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
fix buffer leak after "scsi: saner replacements for ->proc_info()"
authorJan Beulich <JBeulich@suse.com>
Wed, 29 May 2013 12:26:53 +0000 (13:26 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 31 May 2013 19:16:51 +0000 (15:16 -0400)
That patch failed to set proc_scsi_fops' .release method.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/scsi_proc.c

index db66357211ed167d4df1019f151b7e99214788c8..86f0c5d5c116f74d2117806e45ec4599d750837a 100644 (file)
@@ -84,6 +84,7 @@ static int proc_scsi_host_open(struct inode *inode, struct file *file)
 
 static const struct file_operations proc_scsi_fops = {
        .open = proc_scsi_host_open,
+       .release = single_release,
        .read = seq_read,
        .llseek = seq_lseek,
        .write = proc_scsi_host_write