diff options
-rw-r--r-- | drivers/infiniband/hw/cxgb4/provider.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/provider.c b/drivers/infiniband/hw/cxgb4/provider.c index e36d2a27c431..79429256023a 100644 --- a/drivers/infiniband/hw/cxgb4/provider.c +++ b/drivers/infiniband/hw/cxgb4/provider.c | |||
@@ -128,8 +128,10 @@ static struct ib_ucontext *c4iw_alloc_ucontext(struct ib_device *ibdev, | |||
128 | rhp->rdev.flags |= T4_STATUS_PAGE_DISABLED; | 128 | rhp->rdev.flags |= T4_STATUS_PAGE_DISABLED; |
129 | } else { | 129 | } else { |
130 | mm = kmalloc(sizeof(*mm), GFP_KERNEL); | 130 | mm = kmalloc(sizeof(*mm), GFP_KERNEL); |
131 | if (!mm) | 131 | if (!mm) { |
132 | ret = -ENOMEM; | ||
132 | goto err_free; | 133 | goto err_free; |
134 | } | ||
133 | 135 | ||
134 | uresp.status_page_size = PAGE_SIZE; | 136 | uresp.status_page_size = PAGE_SIZE; |
135 | 137 | ||