sh: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:11:01 +0000 (00:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:11:01 +0000 (00:11 -0400)
Cc: vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/sh/drivers/dma/dma-api.c

index 851e510..c0eec08 100644 (file)
@@ -348,7 +348,7 @@ static const struct file_operations dma_proc_fops = {
        .open           = dma_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 int register_dmac(struct dma_info *info)