bonding: COW before overwriting the destination MAC address
authorChangli Gao <xiaosuo@gmail.com>
Wed, 2 Mar 2011 21:07:14 +0000 (21:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2011 23:45:08 +0000 (15:45 -0800)
commit541ac7c9b30ee2ff84ad87f27e0bc069e143afb5
treebb1e2377bf33ecee73518b0c517980f5a33b8405
parentcca134fe784a01cf4eb9f0621b0104591b7ddfba
bonding: COW before overwriting the destination MAC address

When there is a ptype handler holding a clone of this skb, whose
destination MAC addresse is overwritten, the owner of this handler may
get a corrupted packet.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c