mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xwayland: Fix invalid pointer access in drm_lease_device_handle_released.
drm_lease_device_handle_released uses the wrong pointer type in the
callback. This will cause crash when compositor removes drm lease device
object.
Fixes: 089e7f98f - Xwayland: implement drm-lease-v1
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Weng Xuetian <wengxt@gmail.com>
This commit is contained in:
@@ -386,7 +386,8 @@ static void
|
||||
drm_lease_device_handle_released(void *data,
|
||||
struct wp_drm_lease_device_v1 *wp_drm_lease_device_v1)
|
||||
{
|
||||
xwl_screen_destroy_drm_lease_device(data, wp_drm_lease_device_v1);
|
||||
struct xwl_drm_lease_device *lease_device = data;
|
||||
xwl_screen_destroy_drm_lease_device(lease_device->xwl_screen, wp_drm_lease_device_v1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user