summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_proc.c
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2013-05-29 13:26:53 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-31 15:16:51 -0400
commit801d9d26bfd6e88e9cf0efbb30b649d1bdc15dcf (patch)
tree8d47d18324a3e7ad95dcbd7e45cdc9761f30505d /drivers/scsi/scsi_proc.c
parent5d477b6079619910dab882fa229cce1f14f86cf8 (diff)
downloadblackbird-op-linux-801d9d26bfd6e88e9cf0efbb30b649d1bdc15dcf.tar.gz
blackbird-op-linux-801d9d26bfd6e88e9cf0efbb30b649d1bdc15dcf.zip
fix buffer leak after "scsi: saner replacements for ->proc_info()"
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>
Diffstat (limited to 'drivers/scsi/scsi_proc.c')
-rw-r--r--drivers/scsi/scsi_proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c
index db66357211ed..86f0c5d5c116 100644
--- a/drivers/scsi/scsi_proc.c
+++ b/drivers/scsi/scsi_proc.c
@@ -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
OpenPOWER on IntegriCloud