Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/vc4: plane: Remove WARN on state being set in plane_reset

It is permitted on situations such as system resume for plane->state
to be non-NULL, and that should be handled by freeing it. Do so.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241202120343.33726-1-wahrenst@gmx.net

authored by

Dave Stevenson and committed by
Maíra Canal
c5cf8019 4ee06e3b

+4 -1
+4 -1
drivers/gpu/drm/vc4/vc4_plane.c
··· 368 368 { 369 369 struct vc4_plane_state *vc4_state; 370 370 371 - WARN_ON(plane->state); 371 + if (plane->state) 372 + __drm_atomic_helper_plane_destroy_state(plane->state); 373 + 374 + kfree(plane->state); 372 375 373 376 vc4_state = kzalloc(sizeof(*vc4_state), GFP_KERNEL); 374 377 if (!vc4_state)