Re: [PATCH] net: myri10ge: fix memory leaks

From: David Miller
Date: Thu Aug 15 2019 - 15:45:24 EST


From: Wenwen Wang <wenwen@xxxxxxxxxx>
Date: Wed, 14 Aug 2019 01:38:39 -0500

> In myri10ge_probe(), myri10ge_alloc_slices() is invoked to allocate slices
> related structures. Later on, myri10ge_request_irq() is used to get an irq.
> However, if this process fails, the allocated slices related structures are
> not deallocated, leading to memory leaks. To fix this issue, revise the
> target label of the goto statement to 'abort_with_slices'.
>
> Signed-off-by: Wenwen Wang <wenwen@xxxxxxxxxx>

Applied, thanks.