diff options
author | David S. Miller <davem@davemloft.net> | 2014-05-31 02:32:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-31 02:32:53 +0200 |
commit | 554215c5ca08d196ed48a66693e7fc6e5f81f00e (patch) | |
tree | 6864b785b01025cb2e320de55f1721ba1c9b7777 | |
parent | net/mlx4_core: Reset RoCE VF gids when guest driver goes down (diff) | |
parent | can: only rename enabled led triggers when changing the netdev name (diff) | |
download | linux-554215c5ca08d196ed48a66693e7fc6e5f81f00e.tar.xz linux-554215c5ca08d196ed48a66693e7fc6e5f81f00e.zip |
Merge tag 'linux-can-fixes-for-3.15-20140528' of git://gitorious.org/linux-can/linux-can
Marc Kleine-Budde says:
====================
pull-request: can 2014-05-28
here's a pull request for v3.15, hope it's not too late.
Oliver Hartkopp fixed a bug in the CAN led trigger device renaming code.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/can/led.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/can/led.c b/drivers/net/can/led.c index a3d99a8fd2d1..ab7f1b01be49 100644 --- a/drivers/net/can/led.c +++ b/drivers/net/can/led.c @@ -97,6 +97,9 @@ static int can_led_notifier(struct notifier_block *nb, unsigned long msg, if (!priv) return NOTIFY_DONE; + if (!priv->tx_led_trig || !priv->rx_led_trig) + return NOTIFY_DONE; + if (msg == NETDEV_CHANGENAME) { snprintf(name, sizeof(name), "%s-tx", netdev->name); led_trigger_rename_static(name, priv->tx_led_trig); |