Patch "i40iw: Fix double free of allocated_buffer" has been added to the 4.7-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
i40iw: Fix double free of allocated_buffer
to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
i40iw-fix-double-free-of-allocated_buffer.patch
and it can be found in the queue-4.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
d41d0910d97f05be987d2d60de7e8685c108963bMon Sep 17 00:00:00 2001
From: Mustafa Ismail <[email protected]>
Date: Tue, 23 Aug 2016 16:50:13 -0500
Subject: i40iw: Fix double free of allocated_buffer
From: Mustafa Ismail <[email protected]>
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().
--- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 - 1 file changed, 1 deletion(-)
drivers/infiniband/hw/i40iw/i40iw_verbs.c +0 -1
@@ -794,7 +794,6 @@ static struct ib_qp *i40iw_create_qp(strreturn &iwqp->ibqp; error:i40iw_free_qp_resources (iwdev, iwqp, qp_num); -kfree (mem);return ERR_PTR (err_code); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/i40iw-update-hw_iwarp_state.patch queue-4.7/i40iw-add-missing-check-for-interface-already-open.patch queue-4.7/i40iw-fix-double-free-of-allocated_buffer.patch queue-4.7/i40iw-receive-notification-events-correctly.patch queue-4.7/i40iw-change-mem_resources-pointer-to-a-u8.patch queue-4.7/i40iw-protect-req_resource_num-update.patch queue-4.7/i40iw-add-missing-null-check-for-mpa-private-data.patch queue-4.7/i40iw-avoid-writing-to-freed-memory.patch queue-4.7/i40iw-do-not-set-self-referencing-pointer-to-null-after-kfree.patch