]> git.hungrycats.org Git - linux/commit
i40iw: Fix double free of allocated_buffer
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 23 Aug 2016 21:50:13 +0000 (16:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:19 +0000 (15:21 +0200)
commitf75f0a0ac7507a1856066fd1a429784b6865934f
tree87c58fac41ab11bcd9fa69d3b0fd6c1599a6f231
parent296fe7f04a1e0db4023e93f1dc949b3595bcbb89
i40iw: Fix double free of allocated_buffer

commit d41d0910d97f05be987d2d60de7e8685c108963b upstream.

Memory allocated for iwqp; iwqp->allocated_buffer is freed twice in
the create_qp error path. Correct this by having it freed only once in
i40iw_free_qp_resources().

Fixes: d37498417947 ("i40iw: add files for iwarp interface")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/i40iw/i40iw_verbs.c