Explorar o código

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>
Jan Beulich %!s(int64=12) %!d(string=hai) anos
pai
achega
801d9d26bf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/scsi/scsi_proc.c

+ 1 - 0
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