diff options
author | Stefan Agner <stefan@agner.ch> | 2015-11-16 15:43:34 -0800 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2016-02-25 16:13:16 -0800 |
commit | 72cc05a5182079a2506c85f2cf4782dca3ac7e21 (patch) | |
tree | e06012f7f898d2d8652cc0d0233ed89fd3a6f42c /drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | |
parent | e291d2985b2f7d7e0eb0953d8812d3a06f111ec2 (diff) |
drm/fsl-dcu: avoid memory leak on errors
Improve error handling during CRTC initialization. Especially avoid
memory leaks in the primary plane initialization error path.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c')
-rw-r--r-- | drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c index 040ba6bee08d..1ea70314be1d 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c @@ -187,6 +187,7 @@ static const struct drm_plane_helper_funcs fsl_dcu_drm_plane_helper_funcs = { static void fsl_dcu_drm_plane_destroy(struct drm_plane *plane) { drm_plane_cleanup(plane); + kfree(plane); } static const struct drm_plane_funcs fsl_dcu_drm_plane_funcs = { |