2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +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:
Kir Kolyshkin
2015-10-07 02:44:20 -07:00
committed by Pavel Emelyanov
parent 250c89edde
commit 7073009b5d

View File

@@ -225,7 +225,7 @@ static int __userns_sysctl_op(void *arg, int unused, pid_t pid)
goto out;
reqs = xmalloc(sizeof(struct sysctl_req) * userns_req->nr_req);
if (!fds)
if (!reqs)
goto out;
memset(fds, -1, sizeof(int) * userns_req->nr_req);