[ofa-general] [PATCH] IB/ipoib: fix debug msg for path lookup failure

Michael S. Tsirkin mst at dev.mellanox.co.il
Sun Apr 15 01:56:59 PDT 2007


Fix up message printed out on path lookup failure with debug_level set:
we should use status, not pathrec pointer, to detect failures.

Signed-off-by: Michael S. Tsirkin <mst at dev.mellanox.co.il>

---

Index: gen2_devel_kernel/drivers/infiniband/ulp/ipoib/ipoib_main.c
===================================================================
--- gen2_devel_kernel.orig/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ gen2_devel_kernel/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -390,7 +390,7 @@ static void path_rec_completion(int stat
 	struct sk_buff *skb;
 	unsigned long flags;
 
-	if (pathrec)
+	if (!status)
 		ipoib_dbg(priv, "PathRec LID 0x%04x for GID " IPOIB_GID_FMT "\n",
 			  be16_to_cpu(pathrec->dlid), IPOIB_GID_ARG(pathrec->dgid));
 	else


-- 
MST



More information about the general mailing list