net/vxlan: Fix kernel unaligned access in __vxlan_find_mac
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Mon, 20 Jul 2015 07:54:50 +0000 (09:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 07:12:34 +0000 (00:12 -0700)
commit7177a3b037c7569c137c2703efe8187fdc4352b8
tree6a9097a66c8a466ec368117024e7c00f73b26362
parent685a015e44dcd4db50ada60a9a2806659c165d9e
net/vxlan: Fix kernel unaligned access in __vxlan_find_mac

__vxlan_find_mac invokes ether_addr_equal on the eth_addr field,
which triggers unaligned access messages, so rearrange vxlan_fdb
to avoid this in the most non-intrusive way.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c