diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-02-16 13:14:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-16 13:52:14 -0800 |
commit | 42b5adbbac03bdb396192316c015fa3e64ffd5a1 (patch) | |
tree | f71bc8a4321835390932872db9abf0658215c788 /drivers/scsi/scsi_transport_fc.c | |
parent | 6825a456c9a3ac631b9aa59318901bea23e4d51b (diff) |
net: dsa: felix: don't deinitialize unused ports
ocelot_init_port is called only if dsa_is_unused_port == false, however
ocelot_deinit_port is called unconditionally. This causes a warning in
the skb_queue_purge inside ocelot_deinit_port saying that the spin lock
protecting ocelot_port->tx_skbs was not initialized.
Fixes: e5fb512d81d0 ("net: mscc: ocelot: deinitialize only initialized ports")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/scsi_transport_fc.c')
0 files changed, 0 insertions, 0 deletions