Re: [PATCH] net: ethernet: Fix potential memory leak caused in error handling

2020-06-12 Thread Andrew Lunn
On Fri, Jun 12, 2020 at 03:06:54PM -0500, Aditya Pakki wrote: > In ethoc_probe, a failure of mdiobus_register() does not release > the memory allocated by mdiobus_alloc. The patch fixes this issue. Hi Aditya Please improve the Subject: line to indicate which driver you are fixing. A Fixes: tag

[PATCH] net: ethernet: Fix potential memory leak caused in error handling

2020-06-12 Thread Aditya Pakki
In ethoc_probe, a failure of mdiobus_register() does not release the memory allocated by mdiobus_alloc. The patch fixes this issue. Signed-off-by: Aditya Pakki --- drivers/net/ethernet/ethoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ethoc.c