]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Destroy property blobs at mode config cleanup time
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 15 Apr 2013 13:37:16 +0000 (15:37 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 16 Apr 2013 03:11:44 +0000 (13:11 +1000)
commit3ac82061893c44f71156a0b15af991d92ab61180
treeab8081b523689085bce24a38e207452e03319bff
parentbafad8d5ef443ae7215c3a019ff1f34cdbed6167
drm: Destroy property blobs at mode config cleanup time

Property blob objects need to be destroyed when cleaning up to avoid
memory leaks. Go through the list of all blobs in the
drm_mode_config_cleanup() function and destroy them.

The drm_mode_config_cleanup() function needs to be moved after the
drm_property_destroy_blob() declaration. Move drm_mode_config_init() as
well to keep the functions together.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c