]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: don't unlock mutex when changing the user_features fails
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Fri, 1 Nov 2019 14:23:53 +0000 (22:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Nov 2019 01:18:04 +0000 (17:18 -0800)
commit1991d97b21e4d03e65213da6d87deb17455ab11b
treef7d5dd77dc5c344362c854fa54a53a5e7d8f1c9f
parent946632f8f1ff3c38aa8388e2a6c5ef1dd06cc4bd
net: openvswitch: don't unlock mutex when changing the user_features fails

Unlocking of a not locked mutex is not allowed.
Other kernel thread may be in critical section while
we unlock it because of setting user_feature fail.

Fixes: f821382a5 ("net: openvswitch: Set OvS recirc_id from tc chain index")
Cc: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Tested-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: William Tu <u9012063@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c