server: Unlock objects_mutex before locking connection_mutex to avoid deadlock 80/310580/1 accepted/tizen/unified/20240503.070737 accepted/tizen/unified/dev/20240620.011205 accepted/tizen/unified/toolchain/20240508.012400 accepted/tizen/unified/x/20240507.050949 accepted/tizen/unified/x/asan/20240625.092204
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 2 May 2024 06:16:36 +0000 (15:16 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 2 May 2024 06:16:36 +0000 (15:16 +0900)
commit2cb67784c9e9ff274e8e1d85d3bee3810e774e89
tree518040e8a1b7cdab459f993fe5abd9cdce79f5cf
parentb2b82f0f46d5c845522d67f3b0df292df5fdbc7c
server: Unlock objects_mutex before locking connection_mutex to avoid deadlock

In wl_client_connection_data, threads may try to acquire two locks in
different orders, potentially causing deadlock.

Change-Id: I4acde7c0a93b4774632d3283a6fa1c946d498de8
src/wayland-server.c