Message ID | 20180218204002.7408-2-jgg@ziepe.ca (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/libibverbs/device.c b/libibverbs/device.c index 682a504f863802..8b97dde779e0ba 100644 --- a/libibverbs/device.c +++ b/libibverbs/device.c @@ -217,7 +217,7 @@ int verbs_init_context(struct verbs_context *context_ex, context_ex->ABI_placeholder2 = (void (*)(void))context_ex->ibv_destroy_flow; - context_ex->priv = calloc(1, sizeof(context_ex->priv)); + context_ex->priv = calloc(1, sizeof(*context_ex->priv)); if (!context_ex->priv) { errno = ENOMEM; close(cmd_fd);