]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: ib: Fix dereference of conn when NULL and cleanup thereof
authorHåkon Bugge <haakon.bugge@oracle.com>
Thu, 6 Jun 2019 12:00:05 +0000 (14:00 +0200)
committerBrian Maly <brian.maly@oracle.com>
Wed, 17 Jul 2019 16:37:03 +0000 (12:37 -0400)
commit374d3511f657a2a3cbca0c57fee075dbca61bcca
tree7c139ed1328af3ea930fdab671e0a15d1472b511
parent5e5b4c0efe32f0f07f3c7737eabd727a8bb20740
rds: ib: Fix dereference of conn when NULL and cleanup thereof

When rds_ib_cm_connect_complete() and rds_ib_flush_arp_entry() is
called from rds_rdma_cm_event_handler_cmn(), conn may be NULL and a
NULL pointer dereference will happen.

Also cleaned the code by performing the NULL check once.

Orabug: 29924849

Signed-off-by: Dag Moxnes <dag.moxnes@oracle.com>
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Gerd Rausch <gerd.rausch@oracle.com>
(cherry picked from commit b9c03e078f55f3f7cf9d8aba001ca83ab90e1b82)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/rds/rdma_transport.c