]> git.baikalelectronics.ru Git - kernel.git/commit
bna: fix list corruption
authorIvan Vecera <ivecera@redhat.com>
Fri, 26 Feb 2016 08:15:50 +0000 (09:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 20:19:43 +0000 (15:19 -0500)
commit6065783b7477c1fba83fe340c82e4666b99fe004
treed1addca6a45844f739c158570b8c74fa58366126
parenteacef8b2f4df0b131606dfa8cef742a8b5a79985
bna: fix list corruption

Use list_move_tail() to move MAC address entry from list of pending
to list of active entries. Simple list_add_tail() leaves the entry
also in the first list, this leads to list corruption.

Cc: Rasesh Mody <rasesh.mody@qlogic.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Rasesh Mody <rasesh.mody@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bna_tx_rx.c