Răsfoiți Sursa

IPoIB: always set path->query to NULL when query finishes

Always set path->query to NULL when the SA path record query
completes, rather than only when we don't have an address handle.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Roland Dreier 19 ani în urmă
părinte
comite
5872a9fc28
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      drivers/infiniband/ulp/ipoib/ipoib_main.c

+ 2 - 2
drivers/infiniband/ulp/ipoib/ipoib_main.c

@@ -398,9 +398,9 @@ static void path_rec_completion(int status,
 			while ((skb = __skb_dequeue(&neigh->queue)))
 				__skb_queue_tail(&skqueue, skb);
 		}
-	} else
-		path->query = NULL;
+	}
 
+	path->query = NULL;
 	complete(&path->done);
 
 	spin_unlock_irqrestore(&priv->lock, flags);