aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ocrdma
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-12-05 17:39:23 +0300
committerJason Gunthorpe <jgg@mellanox.com>2017-12-13 11:00:14 -0700
commit54a6d63f14bdb4e899bbb4128d32717074d13862 (patch)
tree1d17148a7f7f7c0c1a5103cdd9f6cd455d81ceb7 /drivers/infiniband/hw/ocrdma
parentRDMA/cxgb4: Add a sanity check in process_work() (diff)
downloadlinux-dev-54a6d63f14bdb4e899bbb4128d32717074d13862.tar.xz
linux-dev-54a6d63f14bdb4e899bbb4128d32717074d13862.zip
IB/mlx4: Potential buffer overflow in _mlx4_set_path()
Smatch complains about this code: drivers/infiniband/hw/mlx4/qp.c:1827 _mlx4_set_path() error: buffer overflow 'dev->dev->caps.gid_table_len' 3 <= 255 The mlx4_ib_gid_index_to_real_index() does check that "port" is within bounds, but we don't check the return value for errors. It seems simple enough to add a check for that. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma')
0 files changed, 0 insertions, 0 deletions