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 7373255aa1e817c86480fb28410dbf8f9f774b32..846f475f62c160890835f33a234f85c6a175a222 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,
 };
 
 /*