[PATCH] fix buffer leak after "scsi: saner replacements for ->proc_info()"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That patch failed to set proc_scsi_fops' .release method.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

---
 drivers/scsi/scsi_proc.c |    1 +
 1 file changed, 1 insertion(+)

--- 3.10-rc3/drivers/scsi/scsi_proc.c
+++ 3.10-rc3-scsi-proc-leak/drivers/scsi/scsi_proc.c
@@ -84,6 +84,7 @@ static int proc_scsi_host_open(struct in
 
 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



--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux