mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-27 03:56:05 +00:00
sysctl: fix allocation for array of pointers
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com> Reviewed-by: Andrew Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
c4db738652
commit
ac7c8b2493
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ static int __userns_sysctl_op(void *arg, int proc_fd, pid_t pid)
|
|||
if (!fds)
|
||||
goto out;
|
||||
|
||||
reqs = xmalloc(sizeof(struct sysctl_req) * userns_req->nr_req);
|
||||
reqs = xmalloc(sizeof(struct sysctl_req *) * userns_req->nr_req);
|
||||
if (!reqs)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue