]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: fix missing unlock on error in qca8k_vlan_(add|del)
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 18 May 2021 11:24:13 +0000 (11:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2021 20:39:32 +0000 (13:39 -0700)
commit83b426fcb1f2813953cb42345a0c3e523fc5fd4c
tree8bf0c561282807bd294c16e1e3721ece535b9a7c
parent6f730c3dff52edfa234ff4956ebbc9ddb8c63785
net: dsa: qca8k: fix missing unlock on error in qca8k_vlan_(add|del)

Add the missing unlock before return from function qca8k_vlan_add()
and qca8k_vlan_del() in the error handling case.

Fixes: b10521314f45 ("net: dsa: qca8k: handle error with qca8k_read operation")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c