mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-04 16:25:31 +00:00
__userns_sysctl_op(): fix a check
This is obviously a copy-paste typo. Reported by Coverity, CID 114615. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
250c89edde
commit
7073009b5d
2
sysctl.c
2
sysctl.c
@@ -225,7 +225,7 @@ static int __userns_sysctl_op(void *arg, int unused, pid_t pid)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
reqs = xmalloc(sizeof(struct sysctl_req) * userns_req->nr_req);
|
reqs = xmalloc(sizeof(struct sysctl_req) * userns_req->nr_req);
|
||||||
if (!fds)
|
if (!reqs)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
memset(fds, -1, sizeof(int) * userns_req->nr_req);
|
memset(fds, -1, sizeof(int) * userns_req->nr_req);
|
||||||
|
Reference in New Issue
Block a user