OSDN Git Service

net: macb: call pm_runtime_put_sync on failure path
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 24 Jun 2020 10:08:17 +0000 (13:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 22:59:23 +0000 (15:59 -0700)
commit0eaf228d574bd82a9aed73e3953bfb81721f4227
tree8105c7b75e1db7477e15930377ac22e75a278d88
parentf4926d513b4c753c3e831dc619466c82ba192fed
net: macb: call pm_runtime_put_sync on failure path

Call pm_runtime_put_sync() on failure path of at91ether_open.

Fixes: e6a41c23df0d ("net: macb: ensure interface is not suspended on at91rm9200")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c