Re: [PATCH 02/10] mpt3sas: Fixed memory leaks in driver

From: Tomas Henzl
Date: Wed Oct 11 2017 - 11:30:18 EST


On 10/10/2017 03:11 PM, Sreekanth Reddy wrote:
> Fixed below memory leak in driver,
>
> * While removing Expander devices - we are removing expander
> device entry from the list before freeing it's child devices,
> so while freeing child device we are finding its parent device
> node as NULL and so we are not freeing the child device's
> allocated data structures.
> Updated the driver to remove the expander device from the list
> only after freeing all its child devices.
>
> Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@xxxxxxxxxxxx>

Signed-off-by: Tomas Henzl <thenzl@xxxxxxxxxx>

Tomas