David Miller wrote:
        if (err < 0)
-               return err;
+               goto out_err;
if (err != (PHYXS_XGXS_LANE_STAT_ALINGED |
                    PHYXS_XGXS_LANE_STAT_MAGIC |
@@ -1133,6 +1133,10 @@ out:
*link_up_p = link_up;
        return 0;
+
+out_err:
+       spin_unlock_irqrestore(&np->lock, flags);
+       return err;
 }
static int link_status_1g(struct niu *np, int *link_up_p)

Should *link_up_p be set to any valid value in the out_err case in link_status_10g()?

Oliver
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to