[BRIDGE]: Unaligned access when comparing ethernet addresses
authorEvgeny Kravtsunov <emkravts@openvz.org>
Tue, 17 Apr 2007 19:31:24 +0000 (12:31 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 17 Apr 2007 21:16:00 +0000 (14:16 -0700)
commit19bb3506e27096eea5f7b71b89621ad1203ed318
treef3385d69595ab50fffbc314b281864ef99f2071b
parent0304ff8a2d5f57defb011c7f261b4c1b3eff96d1
[BRIDGE]: Unaligned access when comparing ethernet addresses

compare_ether_addr() implicitly requires that the addresses
passed are 2-bytes aligned in memory.

This is not true for br_stp_change_bridge_id() and
br_stp_recalculate_bridge_id() in which one of the addresses
is unsigned char *, and thus may not be 2-bytes aligned.

Signed-off-by: Evgeny Kravtsunov <emkravts@openvz.org>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Pavel Emelianov <xemul@openvz.org>
net/bridge/br_stp_if.c