]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ce1ac61dcce1bff81b73e4fdcbfd213c6458c43
treece8bbf7fced390702e7ddac11e96bd96a7014ea7
parentd67b700b03cdebbc883b94faeed994c96bd3efd6
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: 7e22c9dff107 ("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