diff options
| author | David Miller <davem@davemloft.net> | 2011-12-02 16:52:44 +0000 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-12-05 15:20:20 -0500 |
| commit | 17e6abeec4cb8df1e33ea0e2b889586c731a68be (patch) | |
| tree | 0e1dedd8afb3fffe9c67a5f61ce85f8da2bedd71 /net/ipv4/tcp_output.c | |
| parent | 51e059bdd62f8da90973edf8a6180bd2c080f866 (diff) | |
| download | olio-linux-3.10-17e6abeec4cb8df1e33ea0e2b889586c731a68be.tar.xz olio-linux-3.10-17e6abeec4cb8df1e33ea0e2b889586c731a68be.zip | |
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 <davem@davemloft.net>
Acked-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions