drm/vc4: Fix memory leak of the CRTC state.
authorEric Anholt <eric@anholt.net>
Mon, 10 Oct 2016 16:44:06 +0000 (09:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2017 07:33:03 +0000 (08:33 +0100)
commit32600835ebe1bd972d01ce7f331b87bd80705d30
tree83d13bc344e037e08c0693d227fde8b57246c976
parent4c741e2adb351a44d1f4bc210aafd382939ac7ae
drm/vc4: Fix memory leak of the CRTC state.

commit 7622b25543665567d8830a63210385b7d705924b upstream.

The underscores variant frees the pointers inside, while the
no-underscores variant calls underscores and then frees the struct.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: d8dbf44f13b9 ("drm/vc4: Make the CRTCs cooperate on allocating display lists.")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vc4/vc4_crtc.c