]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: fixes crash if nf_conncount_init() fails
authorEelco Chaudron <echaudro@redhat.com>
Mon, 31 Aug 2020 09:57:57 +0000 (11:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2020 20:23:23 +0000 (13:23 -0700)
commitb4066e693a1e0ab0ebb8ddbf734232407923a07e
treeb8b7a51e31d37a0cbb19fd8afbe84f747ec9efac
parent4bc12525318062747c357ce9286f873f4bf8fe34
net: openvswitch: fixes crash if nf_conncount_init() fails

If nf_conncount_init fails currently the dispatched work is not canceled,
causing problems when the timer fires. This change fixes this by not
scheduling the work until all initialization is successful.

Fixes: 7a106103de59 ("net: openvswitch: fixes potential deadlock in dp cleanup code")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c