diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-08-31 19:07:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-03 19:57:10 +0200 |
commit | 942e7e5fc1ea4625d971e62f00b5ae3d2f8855de (patch) | |
tree | 6a28e9af593aca2cea3243d90f64d4a9820f025c /net/ipv6 | |
parent | net/mlx4_core: fix memory leaks on error exit path (diff) | |
download | linux-942e7e5fc1ea4625d971e62f00b5ae3d2f8855de.tar.xz linux-942e7e5fc1ea4625d971e62f00b5ae3d2f8855de.zip |
net/mlx4_core: fix incorrect size allocation for dev->caps.spec_qps
The current allocation for dev->caps.spec_qps is for the size of the
pointer and not the size of the actual mlx4_spec_qps structure. Fix
this by using the correct size. Also splint allocation over a few
lines to make it cppcheck clean on overly wide lines.
Detected by CoverityScan, CID#1455222 ("Wrong sizeof argument")
Fixes: c73c8b1e47ca ("net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions