aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJohn Crispin <[email protected]>2016-06-03 10:17:06 +0200
committerDavid S. Miller <[email protected]>2016-06-03 19:54:16 -0400
commit207bdf1844286d2ba94523d30528f82aaf33d52b (patch)
tree179f5a55053ae8b092339cf39b69fb8aa66d109e /net/switchdev/switchdev.c
parent8478b6cdc10e8a7735deeb9d9e46ad5b157c84d0 (diff)
net-next: mediatek: use mdiobus_free() in favour of kfree()
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. Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: John Crispin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions