aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorKalderon, Michal <[email protected]>2018-06-11 07:20:20 +0000
committerJason Gunthorpe <[email protected]>2018-06-11 17:04:14 +0000
commit425cf5c1350a98b81f3ddda160b99c3be613a213 (patch)
tree8d85ae382262f908df66769511c4106268e80afd /drivers/i2c/algos/i2c-algo-bit.c
parentIB/mlx5: Fix return value check in flow_counters_set_data() (diff)
downloadkernel-425cf5c1350a98b81f3ddda160b99c3be613a213.tar.gz
kernel-425cf5c1350a98b81f3ddda160b99c3be613a213.zip
RDMA/qedr: Fix NULL pointer dereference when running over iWARP without RDMA-CM
Some RoCE specific code in qedr_modify_qp was run over an iWARP device when running perftest benchmarks without the -R option. The commit 3e44e0ee0893 ("IB/providers: Avoid null netdev check for RoCE") exposed this. Dropping the check for NULL pointer on ndev in qedr_modify_qp lead to a null pointer dereference when running over iWARP. Before the code would identify ndev as being NULL and return an error. Fixes: 3e44e0ee0893 ("IB/providers: Avoid null netdev check for RoCE") Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: Michal Kalderon <[email protected]> Reviewed-by: Parav Pandit <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions