]> git.ipfire.org Git - thirdparty/qemu.git/commit
Fix calculation of minimum in colo_compare_tcp
authorStefan Weil <sw@weilnetz.de>
Mon, 9 Sep 2024 20:42:54 +0000 (22:42 +0200)
committerJason Wang <jasowang@redhat.com>
Tue, 29 Oct 2024 07:53:23 +0000 (15:53 +0800)
commite29bc931e1699a98959680f6776b48673825762b
treedc8b7454c9f8183ce922a3f43286a181cf8c02a0
parent76240dd2a37c7b361740616a7d6080beafdb8a71
Fix calculation of minimum in colo_compare_tcp

GitHub's CodeQL reports a critical error which is fixed by using the MIN macro:

    Unsigned difference expression compared to zero

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Cc: qemu-stable@nongnu.org
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c