]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: Fix skb_under_panic oops in neigh_resolve_output
authorramesh.nagappa@gmail.com <ramesh.nagappa@gmail.com>
Fri, 5 Oct 2012 19:10:15 +0000 (19:10 +0000)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:28:29 +0000 (16:28 -0800)
commit5e72da1f0a477c55867e54d75edc0b3747eb4a54
tree5a67c9ede7e8af98bd7e44bf2f7c03032b33b3b8
parent4e7b015c4f418aa1267e53c71361b2a46a702ab3
net: Fix skb_under_panic oops in neigh_resolve_output

[ Upstream commit e1f165032c8bade3a6bdf546f8faf61fda4dd01c ]

The retry loop in neigh_resolve_output() and neigh_connected_output()
call dev_hard_header() with out reseting the skb to network_header.
This causes the retry to fail with skb_under_panic. The fix is to
reset the network_header within the retry loop.

Signed-off-by: Ramesh Nagappa <ramesh.nagappa@ericsson.com>
Reviewed-by: Shawn Lu <shawn.lu@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
Reviewed-by: Billie Alsup <billie.alsup@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
net/core/neighbour.c