]> git.baikalelectronics.ru Git - kernel.git/commit
net: smsc911x: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 23 May 2020 08:08:20 +0000 (16:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2020 23:52:17 +0000 (16:52 -0700)
commit4c22b4a809006ae27d8c9e6b2eb24f3b9ab44332
tree498b24188455fdda5ce346daec97b04669d096b8
parented6d99c56e38724df52d0158defcb59e725794df
net: smsc911x: Fix runtime PM imbalance on error

Remove runtime PM usage counter decrement when the
increment function has not been called to keep the
counter balanced.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c