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)
committerEric Anholt <eric@anholt.net>
Thu, 30 Mar 2017 15:41:38 +0000 (08:41 -0700)
commit6d6e500391875cc372336c88e9a8af377be19c36
treece8bbf7fced390702e7ddac11e96bd96a7014ea7
parentc02ed2e75ef4c74e41e421acb4ef1494671585e8
drm/vc4: Allocate the right amount of space for boot-time CRTC state.

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.")
Cc: <stable@vger.kernel.org> # v4.6+
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/vc4/vc4_crtc.c