Skip to content

Commit

Permalink
fix buffer leak after "scsi: saner replacements for ->proc_info()"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Beulich authored and Al Viro committed May 31, 2013
1 parent 5d477b6 commit 801d9d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/scsi_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 801d9d2

Please sign in to comment.