diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-01-12 12:29:21 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-01-19 15:17:40 -0500 |
commit | a7d0e959fab832d0614d0e144cb01cbb87d36258 (patch) | |
tree | a09da7b5ad6582f5d1effa8b2691b0041cb5c688 /drivers/infiniband/hw/cxgb4/device.c | |
parent | RDMA/nes: checking for NULL instead of IS_ERR (diff) | |
download | linux-dev-a7d0e959fab832d0614d0e144cb01cbb87d36258.tar.xz linux-dev-a7d0e959fab832d0614d0e144cb01cbb87d36258.zip |
IB/cma: allocating too much memory in make_cma_ports()
The issue here is that there is a cut and paste bug. When we allocate
cma_dev_group->default_ports_group we use "sizeof(*cma_dev_group->ports)"
instead of "sizeof(*cma_dev_group->default_ports_group)".
We're bumping up against the 80 character limit so I introduced a new
local pointer "ports_group" to get around that.
Fixes: 045959db65c6 ('IB/cma: Add configfs for rdma_cm')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions