drm/vc4: Allocate the right amount of space for boot-time CRTC state.
authorEric Anholt <eric@anholt.net>
Tue, 28 Mar 2017 20:13:43 +0000 (13:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 07:30:35 +0000 (09:30 +0200)
commit6acf5207085723e7a98233b3b6a02ecc4e6ab6cb
treed25e58e3ce52e323c892ae3f0a49f708e899415d
parentfa68e1d3cecc2f25c7ac0615950232b509121689
drm/vc4: Allocate the right amount of space for boot-time CRTC state.

commit 6d6e500391875cc372336c88e9a8af377be19c36 upstream.

Without this, the first modeset would dereference past the allocation
when trying to free the mm node.

Signed-off-by: Eric Anholt <eric@anholt.net>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170328201343.4884-1-eric@anholt.net
Fixes: d8dbf44f13b9 ("drm/vc4: Make the CRTCs cooperate on allocating display lists.")
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vc4/vc4_crtc.c