Commit 78c6c493 authored by Louis Chauvet's avatar Louis Chauvet Committed by Treehugger Robot
Browse files

UPSTREAM: drm: writeback: Fix drm_writeback_connector_cleanup signature



The drm_writeback_connector_cleanup have the signature:

     static void drm_writeback_connector_cleanup(
		struct drm_device *dev,
		struct drm_writeback_connector *wb_connector)

But it is stored and used as a drmres_release_t

    typedef void (*drmres_release_t)(struct drm_device *dev, void *res);

While the current code is valid and does not produce any warning, the
CFI runtime check (CONFIG_CFI_CLANG) can fail because the function
signature is not the same as drmres_release_t.

In order to fix this, change the function signature to match what is
expected by drmres_release_t.

Fixes: 1914ba2b ("drm: writeback: Create drmm variants for drm_writeback_connector initialization")

Suggested-by: default avatarMark Yacoub <markyacoub@google.com>
Reviewed-by: default avatarMaíra Canal <mcanal@igalia.com>
Link: https://lore.kernel.org/r/20250429-drm-fix-writeback-cleanup-v2-1-548ff3a4e284@bootlin.com


Signed-off-by: default avatarLouis Chauvet <louis.chauvet@bootlin.com>
(cherry picked from commit fb721b2c)

Bug: 412666164
Test: Disabling VKMS while in-use should not crash
Change-Id: Id1770ae460fb20f972fbc60c701483b30f913c19
Signed-off-by: default avatarMichael Pobega <pobega@google.com>
parent 82154090
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment