Skip to content

Commit

Permalink
drm/armada: fix incorrect overlay plane cleanup
Browse files Browse the repository at this point in the history
The Armada overlay plane wasn't being properly cleaned up as it was
missing a call to drm_plane_cleanup().  It also wasn't freeing the
right type of pointer (although we were still freeing the right
pointer value.)

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Jul 15, 2015
1 parent 070f3f6 commit 41dbb2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gpu/drm/armada/armada_overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ static int armada_plane_disable(struct drm_plane *plane)

static void armada_plane_destroy(struct drm_plane *plane)
{
kfree(plane);
struct armada_plane *dplane = drm_to_armada_plane(plane);

drm_plane_cleanup(plane);

kfree(dplane);
}

static int armada_plane_set_property(struct drm_plane *plane,
Expand Down

0 comments on commit 41dbb2d

Please sign in to comment.