On Mon, 2018-05-07 at 12:52 -0500, Shiraz Saleem wrote: > From: Mustafa Ismail <mustafa.ismail@xxxxxxxxx> > > If i40iw_allocate_dma_mem fails when creating a QP, the > memory allocated for the QP structure using kzalloc is not > freed because iwqp->allocated_buffer is used to free the > memory and it is not setup until later. Fix this by setting > iwqp->allocated_buffer before allocating the dma memory. > > Fixes: d37498417947 ("i40iw: add files for iwarp interface") > Signed-off-by: Mustafa Ismail <mustafa.ismail@xxxxxxxxx> > Signed-off-by: Shiraz Saleem <shiraz.saleem@xxxxxxxxx> Thanks, applied. -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Attachment:
signature.asc
Description: This is a digitally signed message part