OSDN Git Service

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)
commit0d56e5c191b197e1d30a0a4c92628836dafced0f
tree8bf0c561282807bd294c16e1e3721ece535b9a7c
parent4ac9e23cf2ccdad99dbc57d7d1bf264d53d23057
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: 028f5f8ef44f ("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