[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200504.120526.935588639172781549.davem@davemloft.net>
Date: Mon, 04 May 2020 12:05:26 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: wu000273@....edu
Cc: kuba@...nel.org, oss-drivers@...ronome.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, kjlu@....edu
Subject: Re: [PATCH] nfp: abm: fix a memory leak bug
From: wu000273@....edu
Date: Sat, 2 May 2020 17:42:59 -0500
> From: Qiushi Wu <wu000273@....edu>
>
> In function nfp_abm_vnic_set_mac, pointer nsp is allocated by nfp_nsp_open.
> But when nfp_nsp_has_hwinfo_lookup fail, the pointer is not released,
> which can lead to a memory leak bug. Fix this issue by adding
> nfp_nsp_close(nsp) in the error path.
>
> Signed-off-by: Qiushi Wu <wu000273@....edu>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists