diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2017-07-03 15:13:28 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2017-07-03 15:14:25 +0100 |
commit | 5c594d59c6927b6374fa59e16da3830507300321 (patch) | |
tree | 17ec0a2158cf2460e8f2ea3a1cf86ce87164e138 /lib/librte_vhost/vhost.c | |
parent | 155502af1a45fa9474d56d4389dcba4e1e2c9f6d (diff) | |
parent | bf7567fd2a5b0b28ab724046143c24561d38d015 (diff) |
Merge 17.05.1 into 17.05.x
Change-Id: I65fdca844ad178ec6e2c086d45b901df93b55e58
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'lib/librte_vhost/vhost.c')
-rw-r--r-- | lib/librte_vhost/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_vhost/vhost.c b/lib/librte_vhost/vhost.c index 0b19d2eb..1f565fbb 100644 --- a/lib/librte_vhost/vhost.c +++ b/lib/librte_vhost/vhost.c @@ -369,7 +369,7 @@ rte_vhost_get_mem_table(int vid, struct rte_vhost_memory **mem) return -1; size = dev->mem->nregions * sizeof(struct rte_vhost_mem_region); - m = malloc(size); + m = malloc(sizeof(struct rte_vhost_memory) + size); if (!m) return -1; |