diff options
author | Ido Schimmel <idosch@mellanox.com> | 2015-08-06 16:41:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-09 22:54:09 -0700 |
commit | 26a80f6e542e6b86c9ad9c3d217d74ca8c3fed66 (patch) | |
tree | af74bed0b1556213ac2fb893dded46044575f675 /net/switchdev/switchdev.c | |
parent | ecea49914b329e3f5cf746979c10e05e6bdad77a (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