summaryrefslogtreecommitdiff
path: root/fs/debugfs/file.c
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2016-09-21 10:27:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-27 12:45:57 +0200
commita1a9e5d29854f69a881b4c1e6ac2d6b54f49dfc6 (patch)
tree967a94df25b48881536e535964766d75365f3a6f /fs/debugfs/file.c
parent60ca5e0d280b1a51df55c5fc2e5bfe010b344c5a (diff)
downloadlwn-a1a9e5d29854f69a881b4c1e6ac2d6b54f49dfc6.tar.gz
lwn-a1a9e5d29854f69a881b4c1e6ac2d6b54f49dfc6.zip
debugfs: propagate release() call result
The result was being ignored and 0 was always returned. Return the actual result instead. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/debugfs/file.c')
-rw-r--r--fs/debugfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c
index 309f4e9b2419..354e2ab62031 100644
--- a/fs/debugfs/file.c
+++ b/fs/debugfs/file.c
@@ -206,7 +206,7 @@ static int full_proxy_release(struct inode *inode, struct file *filp)
replace_fops(filp, d_inode(dentry)->i_fop);
kfree((void *)proxy_fops);
fops_put(real_fops);
- return 0;
+ return r;
}
static void __full_proxy_fops_init(struct file_operations *proxy_fops,