aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-01-24 18:20:54 +0300
committerLeon Romanovsky <[email protected]>2023-02-06 12:59:04 +0200
commit563ca0e9eab8acc8a1309e8b440108ff8d23e951 (patch)
treec5d1772a5ba51ebbf34cff1d24727f964c5a5946 /scripts/gdb/linux/vmalloc.py
parentf9c47b2caa7ffc903ec950b454b59c209afe3182 (diff)
RDMA/mana_ib: Prevent array underflow in mana_ib_create_qp_raw()
The "port" comes from the user and if it is zero then the: ndev = mc->ports[port - 1]; assignment does an out of bounds read. I have changed the if statement to fix this and to mirror how it is done in mana_ib_create_qp_rss(). Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/Y8/3Vn8qx00kE9Kk@kili Acked-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions