net/colo-compare.c: Correct ordering in complete and finalize
commit5bd57eba041fb62c373f89c311936000c115fdd6
authorLukas Straub <lukasstraub2@web.de>
Fri, 22 May 2020 07:53:56 +0000 (22 15:53 +0800)
committerJason Wang <jasowang@redhat.com>
Thu, 18 Jun 2020 13:05:52 +0000 (18 21:05 +0800)
tree85d96a617c04873dbbb25e1c14f696ecf645dd0f
parent45942b79b9f89b42a5f5ccfa861c36a86a95d89a
net/colo-compare.c: Correct ordering in complete and finalize

In colo_compare_complete, insert CompareState into net_compares
only after everything has been initialized.
In colo_compare_finalize, remove CompareState from net_compares
before anything is deinitialized.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c