Changeset 48072


Ignore:
Timestamp:
2016-01-02T21:38:56+01:00 (2 years ago)
Author:
rmilecki
Message:

ledtrig-netdev: don't stop timer on events for different interfaces

This fixes regression introduced in my recent ledtrig-netdev commit.
Events triggered by different interfaces were stopping timer so it
wasn't working for tx/rx mode.

Signed-off-by: Rafał Miłecki <zajec5@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/leds/ledtrig-netdev.c

    r48048 r48072  
    270270 
    271271        spin_lock_bh(&trigger_data->lock); 
    272         del_timer_sync(&trigger_data->timer); 
    273272 
    274273        if (strcmp(dev->name, trigger_data->device_name)) 
    275274                goto done; 
     275 
     276        del_timer_sync(&trigger_data->timer); 
    276277 
    277278        if (evt == NETDEV_REGISTER || evt == NETDEV_CHANGENAME) { 
Note: See TracChangeset for help on using the changeset viewer.