]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commita7f4b98896f6aede26431a3017d32d722fcec5cb
treed1addca6a45844f739c158570b8c74fa58366126
parentc44a72a5e8c16751af456cd711720c3aabd40cdd
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