Changeset 28753


Ignore:
Timestamp:
2011-11-04T15:38:31+01:00 (6 years ago)
Author:
juhosg
Message:

kernel: swconfig: add a missing unlock in error path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/swconfig.c

    r27800 r28753  
    895895        i = find_first_zero_bit(&in_use, max_switches); 
    896896 
    897         if (i == max_switches) 
     897        if (i == max_switches) { 
     898                swconfig_unlock(); 
    898899                return -ENFILE; 
     900        } 
    899901 
    900902        /* fill device name */ 
Note: See TracChangeset for help on using the changeset viewer.