[CRIU] [PATCH v7 14/15] sysctl: fix allocation for array of pointers
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Thu Apr 28 09:39:02 PDT 2016
https://jira.sw.ru/browse/PSBM-30942
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.5.5
More information about the CRIU
mailing list