From: David Miller Date: Fri, 2 Dec 2011 16:52:44 +0000 (+0000) Subject: infiniband: ipoib: Sanitize neighbour handling in ipoib_main.c X-Git-Tag: v3.3-rc1~182^2~350 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17e6abeec4cb8df1e33ea0e2b889586c731a68be;p=pandora-kernel.git infiniband: ipoib: Sanitize neighbour handling in ipoib_main.c Reduce the number of dst_get_neighbour_noref() calls within a single call chain. Primarily by passing the neighbour pointer down to the helper functions. Handle dst_get_neighbour_noref() returning NULL in ipoib_start_xmit() by incrementing the dropped counter and freeing the packet. We don't want it to fall through into the ARP/RARP/multicast handling, since that should only happen when skb_dst() is NULL. Signed-off-by: David S. Miller Acked-by: Roland Dreier --- Reading git-diff-tree failed