[PATCH V2 01/22] net-next: mediatek: use mdiobus_free() in favour of kfree()

Andrew Lunn andrew at lunn.ch
Mon May 9 05:07:35 PDT 2016


On Mon, May 09, 2016 at 12:03:53PM +0200, John Crispin wrote:
> The driver currently uses kfree() to clear the mii_bus. This is not the
> correct way to clear the memory and mdiobus_free() should be used instead.
> This patch fixes the two instances where this happens in the driver.
> 
> Reported-by: Andrew Lunn <andrew at lunn.ch>
> Signed-off-by: John Crispin <john at phrozen.org>

Thanks John

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

       Andrew



More information about the Linux-mediatek mailing list