OSDN Git Service

alx: fix missing unlock on error in alx_set_pauseparam()
authorPu Lehui <pulehui@huawei.com>
Fri, 14 May 2021 08:24:05 +0000 (16:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:10:51 +0000 (15:10 -0700)
commit2d1c5f29d27a338b6ca98f58caf191482105c418
tree420258dd10c3e9235ba987a5874aea6bae659e64
parent052d601725526efeb433956ef86627a5e34cf2e2
alx: fix missing unlock on error in alx_set_pauseparam()

Add the missing unlock before return from function alx_set_pauseparam()
in the error handling case.

Fixes: 4a5fe57e7751 ("alx: use fine-grained locking instead of RTNL")
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/ethtool.c