linux_dsm_epyc7002/drivers/infiniband/hw
Colin Ian King a6d2a5a92e RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure
Currently if alloc_skb fails to allocate the skb a null skb is passed to
t4_set_arp_err_handler and this ends up dereferencing the null skb.  Avoid
the NULL pointer dereference by checking for a NULL skb and returning
early.

Addresses-Coverity: ("Dereference null return")
Fixes: b38a0ad8ec ("RDMA/cxgb4: Set arp error handler for PASS_ACCEPT_RPL messages")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-04-16 08:03:17 -03:00
..
bnxt_re RDMA/drivers: Convert easy drivers to use ib_device_set_netdev() 2019-04-09 10:14:54 -03:00
cxgb3 IB: Pass only ib_udata in function prototypes 2019-04-01 15:00:47 -03:00
cxgb4 RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure 2019-04-16 08:03:17 -03:00
hfi1 Merge HFI1 updates into k.o/for-next 2019-04-03 15:28:05 -03:00
hns RDMA/drivers: Convert easy drivers to use ib_device_set_netdev() 2019-04-09 10:14:54 -03:00
i40iw IB: Pass only ib_udata in function prototypes 2019-04-01 15:00:47 -03:00
mlx4 RDMA: Handle SRQ allocations by IB/core 2019-04-08 13:05:25 -03:00
mlx5 RDMA/mlx5: Check for error return in flow_rule rather than err 2019-04-12 11:19:49 -03:00
mthca RDMA: Handle SRQ allocations by IB/core 2019-04-08 13:05:25 -03:00
nes IB: Pass only ib_udata in function prototypes 2019-04-01 15:00:47 -03:00
ocrdma RDMA/ocrdma: Remove use of idr use pci bdf instead 2019-04-12 10:59:02 -03:00
qedr RDMA/drivers: Convert easy drivers to use ib_device_set_netdev() 2019-04-09 10:14:54 -03:00
qib qib: Convert qib_unit_table to XArray 2019-04-01 13:31:35 -03:00
usnic IB: Pass only ib_udata in function prototypes 2019-04-01 15:00:47 -03:00
vmw_pvrdma RDMA/drivers: Convert easy drivers to use ib_device_set_netdev() 2019-04-09 10:14:54 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00