projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362f37b
)
net: ethernet: aquantia: Fixed missing rtnl_unlock.
author
Pavel Belous
<
[email protected]
>
Mon, 20 Feb 2017 19:36:44 +0000
(22:36 +0300)
committer
David S. Miller
<
[email protected]
>
Mon, 20 Feb 2017 22:11:09 +0000
(17:11 -0500)
rtnl_unlock should be called if error occurred.
Signed-off-by: Pavel Belous <
[email protected]
>
Reviewed-by: Lino Sanfilippo <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
index 4b8d074a84509faba705dcfee3dd42848d8d477b..646314c6f237ab96849a6988776d4ca1ad72bd78 100644
(file)
--- a/
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
+++ b/
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
@@
-932,7
+932,7
@@
int aq_nic_change_pm_state(struct aq_nic_s *self, pm_message_t *pm_msg)
if (!netif_running(self->ndev)) {
err = 0;
- goto
err_exi
t;
+ goto
ou
t;
}
rtnl_lock();
if (pm_msg->event & PM_EVENT_SLEEP || pm_msg->event & PM_EVENT_FREEZE) {
@@
-957,8
+957,9
@@
int aq_nic_change_pm_state(struct aq_nic_s *self, pm_message_t *pm_msg)
netif_device_attach(self->ndev);
netif_tx_start_all_queues(self->ndev);
}
- rtnl_unlock();
err_exit:
+ rtnl_unlock();
+out:
return err;
}