]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:11:43 +0000 (10:11 +0200)
commite8f3b40c31f157e78a4352d8c16bb1950ed0b2cf
tree1043fac25fb29f669c5e0b9ae2b961425e5f0b39
parent4deb0b3f6252ba08ebb8f471463305ab14fc3c37
drm/vc4: Allocate the right amount of space for boot-time CRTC state.

BugLink: http://bugs.launchpad.net/bugs/1681875
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/vc4/vc4_crtc.c