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

use new squashfs in all kernels

File:
1 edited

Legend:

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

    r31574 r31662  
    15121512        ret = ipoib_set_mode(dev, buf);
    15131513
    1514         rtnl_unlock();
    1515 
    1516         if (!ret)
    1517                 return count;
    1518 
    1519         return ret;
     1514        /* The assumption is that the function ipoib_set_mode returned
     1515         * with the rtnl held by it, if not the value -EBUSY returned,
     1516         * then no need to rtnl_unlock
     1517         */
     1518        if (ret != -EBUSY)
     1519                rtnl_unlock();
     1520
     1521        return (!ret || ret == -EBUSY) ? count : ret;
    15201522}
    15211523
Note: See TracChangeset for help on using the changeset viewer.