]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i40iw: Fix double free of QP
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 6 Dec 2016 21:49:30 +0000 (15:49 -0600)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Dec 2016 22:20:26 +0000 (17:20 -0500)
commitf4a87ca12a1c203913a5cc889ec49b817a1f45fc
treefab49377163fae43144892789644e5ccc72cb0e1
parent91c42b72f8e8b45961ff05a05009b644e6316ca2
i40iw: Fix double free of QP

A QP can be double freed if i40iw_cm_disconn() is
called while it is currently being freed by
i40iw_rem_ref(). The fix in i40iw_cm_disconn() will
first check if the QP is already freed before
making another request for the QP to be freed.

Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw.h
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_hw.c