Revert "cred: add missing return error code when set_cred_ucounts() failed"
This reverts commit 0855952ed4
.
It breaks the abi and is not needed on Android kernels.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I65001e80f3776ae4ab56be5da555dba394278c68
This commit is contained in:
@@ -375,8 +375,7 @@ int copy_creds(struct task_struct *p, unsigned long clone_flags)
|
|||||||
ret = create_user_ns(new);
|
ret = create_user_ns(new);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto error_put;
|
goto error_put;
|
||||||
ret = set_cred_ucounts(new);
|
if (set_cred_ucounts(new) < 0)
|
||||||
if (ret < 0)
|
|
||||||
goto error_put;
|
goto error_put;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user