Currently, -EINVAL is always returned. Return a specific error code in dependence of problem. Signed-off-by: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx> --- fs/binfmt_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 3a3ced7..da64365 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -716,7 +716,7 @@ static ssize_t bm_register_write(struct file *file, const char __user *buffer, if (err) { kfree(e); - return -EINVAL; + return err; } return count; } -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html