summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2020-09-23 10:40:31 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-29 10:11:28 +0100
commit78c062b09723b1df9fe4793f18e90b69056df056 (patch)
treec0f37fff195709025a219d602ecad0e2b622aec3 /sound
parentdd6fbde266a546e48a0e48fdab6b92c86a498ddb (diff)
drm/vc4: crtc: Rework a bit the CRTC state code
[ Upstream commit 427c4a0680a28f87bb9c7bbfeac26b39ef8682ad ] The current CRTC state reset hook in vc4 allocates a vc4_crtc_state structure as a drm_crtc_state, and relies on the fact that vc4_crtc_state embeds drm_crtc_state as its first member, and therefore can be safely cast. However, this is pretty fragile especially since there's no check for this in place, and we're going to need to access vc4_crtc_state member at reset so this looks like a good occasion to make it more robust. Fixes: 6d6e50039187 ("drm/vc4: Allocate the right amount of space for boot-time CRTC state.") Signed-off-by: Maxime Ripard <maxime@cerno.tech> Tested-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200923084032.218619-1-maxime@cerno.tech Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions