From: Jan Beulich Date: Wed, 29 May 2013 12:26:53 +0000 (+0100) Subject: fix buffer leak after "scsi: saner replacements for ->proc_info()" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=801d9d26bfd6e88e9cf0efbb30b649d1bdc15dcf;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Al Viro --- 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