Ignore:
Timestamp:
Mar 15, 2017, 2:42:58 AM (6 weeks ago)
Author:
brainslayer
Message:

use new squashfs in all kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/drivers/infiniband/ulp/ipoib/ipoib_cm.c

    r31220 r31662  
    14891489        ret = ipoib_set_mode(dev, buf);
    14901490
    1491         rtnl_unlock();
    1492 
    1493         if (!ret)
    1494                 return count;
    1495 
    1496         return ret;
     1491        /* The assumption is that the function ipoib_set_mode returned
     1492         * with the rtnl held by it, if not the value -EBUSY returned,
     1493         * then no need to rtnl_unlock
     1494         */
     1495        if (ret != -EBUSY)
     1496                rtnl_unlock();
     1497
     1498        return (!ret || ret == -EBUSY) ? count : ret;
    14971499}
    14981500
Note: See TracChangeset for help on using the changeset viewer.