Re: [PATCH] net: qlogic: Fix memory leak in ql_alloc_large_buffers

From: David Miller
Date: Fri Oct 04 2019 - 21:35:57 EST


From: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>
Date: Fri, 4 Oct 2019 15:24:39 -0500

> In ql_alloc_large_buffers, a new skb is allocated via netdev_alloc_skb.
> This skb should be released if pci_dma_mapping_error fails.
>
> Fixes: 0f8ab89e825f ("qla3xxx: Check return code from pci_map_single() in ql_release_to_lrg_buf_free_list(), ql_populate_free_queue(), ql_alloc_large_buffers(), and ql3xxx_send()")
> Signed-off-by: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>

Applied and queued up for -stable.