Skip to content
Commit 443a70d5 authored by Philip Craig's avatar Philip Craig Committed by David S. Miller
Browse files

netfilter: nf_conntrack: padding breaks conntrack hash on ARM

commit 0794935e

 "[NETFILTER]: nf_conntrack: optimize hash_conntrack()"
results in ARM platforms hashing uninitialised padding.  This padding
doesn't exist on other architectures.

Fix this by replacing NF_CT_TUPLE_U_BLANK() with memset() to ensure
everything is initialised.  There were only 4 bytes that
NF_CT_TUPLE_U_BLANK() wasn't clearing anyway (or 12 bytes on ARM).

Signed-off-by: default avatarPhilip Craig <philipc@snapgear.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0010e465
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment