Alexandre Julliard pushed to branch master at wine / wine
Commits: 952547f5 by Vibhav Pant at 2025-12-05T11:09:49+01:00 winebth.sys: Unify critical sections used for bluetooth_radio.
- - - - - 6c1f6f7f by Vibhav Pant at 2025-12-05T11:09:50+01:00 winebth.sys: Fix potential deadlocks while performing operations that block on the DBus event loop.
Disconnecting and removing remote devices hold device_list_cs before blocking on the DBus event loop, which may cause a deadlock if we receive a message from BlueZ whose handler also attempts to enter device_list_cs (Like BLUETOOTH_WATCHER_EVENT_TYPE_DEVICE_PROPERTIES_CHANGED). To fix this, the device/radio handle is duplicated once found, device_list_cs is released, and the DBus method call is made using the duplicate handle(s), which are then freed normally.
- - - - -
5 changed files:
- dlls/winebth.sys/unixlib.c - dlls/winebth.sys/unixlib.h - dlls/winebth.sys/winebluetooth.c - dlls/winebth.sys/winebth.c - dlls/winebth.sys/winebth_priv.h
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/6048ac5dfebd7090672ec1c26e6e15...