drm: atmel-hlcdc: add a ->cleanup_fb() operation
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 10 Oct 2015 05:55:39 +0000 (07:55 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 14 Apr 2016 07:17:24 +0000 (09:17 +0200)
commit1a7b37ca349bbdeb2f208a6a71a9925a716141f4
treedbdd6c13ee02d8e473d7f64ffb14d3c496d4c628
parentf9fd2adaacd8dc0ecbb38d96f3c62f20f0697176
drm: atmel-hlcdc: add a ->cleanup_fb() operation

Add a ->cleanup_fb() operation to avoid memory leaks when the atomic
operation is interrupted after the ->prepare_fb() call.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes 2389fc1 ("drm: atmel-hlcdc: Atomic mode-setting conversion")
Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c