linux_dsm_epyc7002/drivers/infiniband
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
..
core RDMA/umem: Use correct value for SG entries in sg_copy_to_buffer() 2019-04-08 13:05:25 -03:00
hw RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure 2019-04-16 08:03:17 -03:00
sw RDMA: Handle SRQ allocations by IB/core 2019-04-08 13:05:25 -03:00
ulp opa_vnic: fix check on record->event, incorrect operator used 2019-04-08 13:05:24 -03:00
Kconfig IB/{core,uverbs}: Move ib_umem_xxx functions from ib_core to ib_uverbs 2019-01-10 17:06:44 -07:00
Makefile