Home
last modified time | relevance | path

Searched hist:d93515611bbc70c2fe4db232e5feb448ed8e4cc9 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/
H A Dmacvlan.cdiff d93515611bbc70c2fe4db232e5feb448ed8e4cc9 Fri May 20 13:59:23 CDT 2011 Eric Dumazet <eric.dumazet@gmail.com> macvlan: fix panic if lowerdev in a bond

commit a35e2c1b6d905 (macvlan: use rx_handler_data pointer to store
macvlan_port pointer V2) added a bug in macvlan_port_create()

Steps to reproduce the bug:

# ifenslave bond0 eth0 eth1

# ip link add link eth0 up name eth0#1 type macvlan
->error EBUSY

# ip link add link eth0 up name eth0#1 type macvlan
->panic


Fix: Dont set IFF_MACVLAN_PORT in error case.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>