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.4/drivers/net/ieee802154/fakelb.c

    r28606 r31662  
    3131
    3232static LIST_HEAD(fakelb_phys);
    33 static DEFINE_SPINLOCK(fakelb_phys_lock);
     33static DEFINE_MUTEX(fakelb_phys_lock);
    3434
    3535static LIST_HEAD(fakelb_ifup_phys);
     
    181181                goto err_reg;
    182182
    183         spin_lock(&fakelb_phys_lock);
     183        mutex_lock(&fakelb_phys_lock);
    184184        list_add_tail(&phy->list, &fakelb_phys);
    185         spin_unlock(&fakelb_phys_lock);
     185        mutex_unlock(&fakelb_phys_lock);
    186186
    187187        return 0;
     
    215215
    216216err_slave:
    217         spin_lock(&fakelb_phys_lock);
     217        mutex_lock(&fakelb_phys_lock);
    218218        list_for_each_entry_safe(phy, tmp, &fakelb_phys, list)
    219219                fakelb_del(phy);
    220         spin_unlock(&fakelb_phys_lock);
     220        mutex_unlock(&fakelb_phys_lock);
    221221        return err;
    222222}
     
    226226        struct fakelb_phy *phy, *tmp;
    227227
    228         spin_lock(&fakelb_phys_lock);
     228        mutex_lock(&fakelb_phys_lock);
    229229        list_for_each_entry_safe(phy, tmp, &fakelb_phys, list)
    230230                fakelb_del(phy);
    231         spin_unlock(&fakelb_phys_lock);
     231        mutex_unlock(&fakelb_phys_lock);
    232232        return 0;
    233233}
Note: See TracChangeset for help on using the changeset viewer.