summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2015-08-06 16:41:52 +0200
committerDavid S. Miller <davem@davemloft.net>2015-08-09 22:54:09 -0700
commit26a80f6e542e6b86c9ad9c3d217d74ca8c3fed66 (patch)
treeaf74bed0b1556213ac2fb893dded46044575f675 /net/switchdev/switchdev.c
parentecea49914b329e3f5cf746979c10e05e6bdad77a (diff)
mlxsw: Call free_netdev when removing port
When removing a port's netdevice we should also free the memory allocated by alloc_etherdev(). Do this by calling free_netdev() at the end of the teardown sequence. Reported-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions