qeth: avoid duplicate deletion of multicast addresses
commitd8fae9c2f2642ffe411424ed2e4677f959168152
authorUrsula Braun <braunu@de.ibm.com>
Fri, 5 Oct 2007 14:45:46 +0000 (5 16:45 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:54:41 +0000 (10 16:54 -0700)
treee037acf17ddb344baa3bbb5c1d9cb398a409d8c8
parent6570ebc4f57ad0761104f769576ae5652d9b8d64
qeth: avoid duplicate deletion of multicast addresses

if qeth_set_multicast_list() is performed on 2 CPUs in parallel,
card->ip_list may end corrupted.
Solution: In function __qeth_delete_all_mc()
          remove card->ip_list entry before invoking
          qeth_deregister_addr_entry(). Thus a 2nd invocation of
          qeth_set_multicast_list() cannot try to remove the
          same entry twice.

Signed-off-by Ursula Braun <braunu@de.ibm.com>

Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/s390/net/qeth_main.c