linux/drivers/infiniband
Colin Ian King 1d4b32bee9 IB/rxe: check for allocation failure on elem
[ Upstream commit 4831ca9e4a ]

The allocation for elem may fail (especially because we're using
GFP_ATOMIC) so best to check for a null return.  This fixes a potential
null pointer dereference when assigning elem->pool.

Detected by CoverityScan CID#1357507 ("Dereference null return value")

Fixes: 8700e3e7c4 ("Soft RoCE driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-12-25 14:23:44 +01:00
..
core IB/core: Protect against self-requeue of a cq work item 2017-12-25 14:23:41 +01:00
hw i40iw: Receive netdev events post INET_NOTIFIER state 2017-12-25 14:23:40 +01:00
sw IB/rxe: check for allocation failure on elem 2017-12-25 14:23:44 +01:00
ulp RDMA/iser: Fix possible mr leak on device removal event 2017-12-25 14:23:41 +01:00
Kconfig qedr: Add RoCE driver framework 2016-10-14 15:00:10 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00