[CRIU] [PATCH resend v7 13/14] sysctl: fix allocation for array of pointers
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Tue Apr 26 05:13:53 PDT 2016
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
criu/sysctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/sysctl.c b/criu/sysctl.c
index 60e52db..9e4be28 100644
--- a/criu/sysctl.c
+++ b/criu/sysctl.c
@@ -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;
--
2.4.11
More information about the CRIU
mailing list