]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/siw: Fix potential NULL de-ref
authorBernard Metzler <bmt@zurich.ibm.com>
Mon, 19 Aug 2019 14:02:57 +0000 (16:02 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Aug 2019 17:44:44 +0000 (13:44 -0400)
commita100a8a3a6daa144828d5b018dba19f0ca840f8a
tree2740857561f5a6e4173c55d2d66f05c0328a61dc
parent20a587849ca345007842af8864f4ee66752cb621
RDMA/siw: Fix potential NULL de-ref

In siw_connect() we have an error flow where there is no valid qp
pointer.  Make sure we don't try to de-ref in that situation.

Fixes: 964fdfacc912 ("rdma/siw: connection management")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Link: https://lore.kernel.org/r/20190819140257.19319-1-bmt@zurich.ibm.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/siw/siw_cm.c