diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2016-09-21 11:27:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-27 12:45:57 +0200 |
commit | a1a9e5d29854f69a881b4c1e6ac2d6b54f49dfc6 (patch) | |
tree | 967a94df25b48881536e535964766d75365f3a6f /fs/debugfs | |
parent | driver-core: platform: Catch errors from calls to irq_get_irq_data (diff) | |
download | linux-a1a9e5d29854f69a881b4c1e6ac2d6b54f49dfc6.tar.xz linux-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')
-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, |