diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2016-09-21 12:27:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-27 13:45:57 +0300 |
commit | a1a9e5d29854f69a881b4c1e6ac2d6b54f49dfc6 (patch) | |
tree | 967a94df25b48881536e535964766d75365f3a6f /fs/debugfs/file.c | |
parent | 60ca5e0d280b1a51df55c5fc2e5bfe010b344c5a (diff) | |
download | linux-a1a9e5d29854f69a881b4c1e6ac2d6b54f49dfc6.tar.xz |
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.c | 2 |
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, |