]> git.baikalelectronics.ru Git - kernel.git/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)
committerDoug Ledford <dledford@redhat.com>
Wed, 24 Aug 2016 15:31:39 +0000 (11:31 -0400)
commitf61377e78e259649860aa72fbbbba63074bdc511
tree2acd1fa15ed66fe063c4909bbeb6e3598dad6622
parent70b1ad266755a63f4577f7849b3a95cb2b8b3cf8
i40iw: Fix double free of allocated_buffer

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: d1d17ea4bcb8 ("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>
drivers/infiniband/hw/i40iw/i40iw_verbs.c