android_kernel_oneplus_msm8998/drivers/infiniband
Colin Ian King 488920af3b RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure
[ Upstream commit a6d2a5a92e67d151c98886babdc86d530d27111c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-11 12:23:59 +02:00
..
core mm: replace get_user_pages() write/force parameters with gup_flags 2018-12-17 21:55:16 +01:00
hw RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure 2019-06-11 12:23:59 +02:00
ulp RDMA/srp: Rework SCSI device reset handling 2019-03-23 08:44:17 +01:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-07-17 11:31:46 +02:00
Makefile