Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263084
b: refs/heads/master
c: 80b43de
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed Aug 17, 2011
1 parent 03638f5 commit a07022e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 200ae1a08bec8f3fedfcfe94c892d9a024db4e46
refs/heads/master: 80b43de83781ed67810d54c7892ac9cb2a2601df
8 changes: 5 additions & 3 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,13 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct ipoib_dev_priv *priv = netdev_priv(dev);
struct ipoib_neigh *neigh;
struct neighbour *n;
struct neighbour *n = NULL;
unsigned long flags;

n = dst_get_neighbour(skb_dst(skb));
if (likely(skb_dst(skb) && n)) {
if (likely(skb_dst(skb)))
n = dst_get_neighbour(skb_dst(skb));

if (likely(n)) {
if (unlikely(!*to_ipoib_neigh(n))) {
ipoib_path_lookup(skb, dev);
return NETDEV_TX_OK;
Expand Down

0 comments on commit a07022e

Please sign in to comment.