Merge branches 'cxgb4', 'ipoib', 'misc' and 'qib' into for-next
[pandora-kernel.git] / drivers / infiniband / ulp / ipoib / ipoib_main.c
index ef38848..83695b4 100644 (file)
@@ -432,7 +432,7 @@ static void path_rec_completion(int status,
 
        spin_lock_irqsave(&priv->lock, flags);
 
-       if (ah) {
+       if (!IS_ERR_OR_NULL(ah)) {
                path->pathrec = *pathrec;
 
                old_ah   = path->ah;