megaraid: single_open() leak
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:15:15 +0000 (00:15 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:15:15 +0000 (00:15 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/megaraid.c

index 7373255..846f475 100644 (file)
@@ -2770,7 +2770,7 @@ static const struct file_operations mega_proc_fops = {
        .open           = mega_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 /*