]> 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)
commit4a0b849691022e1999a3c81b79824a52b12aecc0
tree8bf0c561282807bd294c16e1e3721ece535b9a7c
parentb3fa5ffdc35bcb4afbcbbb25172ec7fba5688ad2
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: 72fc430b6308 ("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