flow dissector: correct size of storage for ARP
authorSimon Horman <simon.horman@netronome.com>
Mon, 3 Apr 2017 19:42:58 +0000 (15:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 21:46:45 +0000 (14:46 -0700)
commitac6a3722fed67c658a435187d0254ae119d845d3
treeb79389a819445a306c89422b61ae74c1da375505
parent75514b6654859e0130b512396dc964d2a9e84967
flow dissector: correct size of storage for ARP

The last argument to __skb_header_pointer() should be a buffer large
enough to store struct arphdr. This can be a pointer to a struct arphdr
structure. The code was previously using a pointer to a pointer to
struct arphdr.

By my counting the storage available both before and after is 8 bytes on
x86_64.

Fixes: 55733350e5e8 ("flow disector: ARP support")
Reported-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c