Re: [PATCH for-rc 2/4] IB/hfi1: Call xa_destroy before unloading the module
From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2021-03-29 14:12:16
Also in:
stable
From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2021-03-29 14:12:16
Also in:
stable
On Mon, Mar 29, 2021 at 09:48:18AM -0400, dennis.dalessandro@cornelisnetworks.com wrote:
From: Kaike Wan <redacted> Call xa_destroy for hfi1_dev_table before unloading the module to avoid a potential memory leak.
Do you hit the WARN_ON or not? Is this all just mindless? If the xarray is supposed to be empty because everything was erased then you don't need it, the WARN_ON is correct. An empty xarray needs no further destruction. Jason