Message ID | 20160618084021.GB21713@mwanda (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/infiniband/hw/rxe/rxe.c b/drivers/infiniband/hw/rxe/rxe.c index 48c41e00..50e25b0 100644 --- a/drivers/infiniband/hw/rxe/rxe.c +++ b/drivers/infiniband/hw/rxe/rxe.c @@ -187,7 +187,6 @@ static int rxe_init_ports(struct rxe_dev *rxe) port->pkey_tbl[0] = 0xffff; if (!port->attr.gid_tbl_len) { - kfree(port->pkey_tbl); err = -EINVAL; goto err1; }
"goto err1" could probably be remained "goto free_pkey_tbl" since that's what it does. This is a double free. Fixes: 0784481b2f32 ('Add initialization for Soft RoCE driver, pools constants etc.') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html