]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3717eaf67ba8ca0439b042800c102eb7cdefdc5
tree420258dd10c3e9235ba987a5874aea6bae659e64
parent8be8305e6139c1690c08e9e6c5f802fd73a6f896
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: f4eba221099e ("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