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 851e5106e5809ca6f18c97bd70d87069194007a2..c0eec08d8f959a5692f861af794abf9b606582e5 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)