Commit 7073009b authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

__userns_sysctl_op(): fix a check

This is obviously a copy-paste typo.

Reported by Coverity, CID 114615.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 250c89ed
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment