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>
This commit is contained in:
Eric Engestrom 2016-09-21 10:27:36 +01:00 committed by Greg Kroah-Hartman
parent 60ca5e0d28
commit a1a9e5d298
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ static int full_proxy_release(struct inode *inode, struct file *filp)
replace_fops(filp, d_inode(dentry)->i_fop); replace_fops(filp, d_inode(dentry)->i_fop);
kfree((void *)proxy_fops); kfree((void *)proxy_fops);
fops_put(real_fops); fops_put(real_fops);
return 0; return r;
} }
static void __full_proxy_fops_init(struct file_operations *proxy_fops, static void __full_proxy_fops_init(struct file_operations *proxy_fops,