]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: Fix lan9303_alr_del_port()
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Wed, 8 Nov 2017 10:44:36 +0000 (11:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Nov 2017 00:59:07 +0000 (09:59 +0900)
commit229a3696f9c144b8b2c617f9e75c09b5e9b27243
treeca1fb3bdd674b623dffe1a6d5e7add91ae197437
parent4bfac0091d5cb6b10be1c3a469c9a8864f0b9d91
net: dsa: lan9303: Fix lan9303_alr_del_port()

Fix embarrassing bug in lan9303_alr_del_port(): Instead of zeroing
entr->mac_addr, I destroyed the next cache entry. Affected .port_fdb_del and
.port_mdb_del.

Fixes: 422597768ab9 ("net: dsa: lan9303: Add fdb/mdb manipulation")
Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c