[PATCH net 4/4] net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module

Andrew Lunn andrew at lunn.ch
Mon Jan 17 08:54:01 AEDT 2022


On Sun, Jan 16, 2022 at 10:15:29PM +0100, Tobias Waldekranz wrote:
> As reported by sparse: In the remove path, the driver would attempt to
> unmap its own priv pointer - instead of the io memory that it mapped
> in probe.

Hi Tobias

The change itself is O.K.

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

But you could also change to devm_ so the core will handle the unmap,
it is very unlikely to unmap the wrong thing.

     Andrew


More information about the Linuxppc-dev mailing list