[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220303211953.7d937dfc@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net>
Date: Thu, 3 Mar 2022 21:19:53 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Jia-Ju Bai <baijiaju1990@...il.com>
Cc: aelior@...vell.com, manishc@...vell.com, davem@...emloft.net,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: qlogic: check the return value of
dma_alloc_coherent() in qed_vf_hw_prepare()
On Wed, 2 Mar 2022 19:34:50 -0800 Jia-Ju Bai wrote:
> --- a/drivers/net/ethernet/qlogic/qed/qed_vf.c
> +++ b/drivers/net/ethernet/qlogic/qed/qed_vf.c
> @@ -513,6 +513,9 @@ int qed_vf_hw_prepare(struct qed_hwfn *p_hwfn)
> p_iov->bulletin.size,
> &p_iov->bulletin.phys,
> GFP_KERNEL);
> + if (!p_iov->bulletin.p_virt)
> + goto free_vf2pf_request;
leaking the reply buffer
Powered by blists - more mailing lists