commit | 26a80f6e542e6b86c9ad9c3d217d74ca8c3fed66 | [log] [tgz] |
---|---|---|
author | Ido Schimmel <idosch@mellanox.com> | Thu Aug 06 16:41:52 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sun Aug 09 22:54:09 2015 -0700 |
tree | af74bed0b1556213ac2fb893dded46044575f675 | |
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>