mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
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:
parent
cf08d2746d
commit
049c7d395d
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user