ui/vnc: Add missing lock for send_color_map
commit947191b4312a547621566d77d7b922d9e13bb63d
authorPeng Liang <liangpeng10@huawei.com>
Mon, 16 Nov 2020 14:13:38 +0000 (16 22:13 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 11 Dec 2020 07:06:40 +0000 (11 08:06 +0100)
tree50afcf6b5647fa58b00adeaba8e7bcd1b3fd596d
parent074a86d0b3e8a9352dcca32b46917e1b3ab23ea4
ui/vnc: Add missing lock for send_color_map

vnc_write() should be locked after the RFB protocol is initialized.

Fixes: 0c426e4534b4 ("vnc: Add support for color map")
Cc: qemu-stable@nongnu.org
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Message-id: 20201116141338.148911-1-liangpeng10@huawei.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c