]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/exynos: fix memory leak to EDID block
authorEgbert Eich <eich@suse.de>
Tue, 20 Nov 2012 09:30:16 +0000 (04:30 -0500)
committerInki Dae <inki.dae@samsung.com>
Wed, 5 Dec 2012 05:39:20 +0000 (14:39 +0900)
commit3dc5fa9a157b9675775446fb83888b1803e0288a
tree1c4dcedd5d4d73e962b5bb7a480f0a37a4eb4fb8
parent465ed6606018b56d55219b6c58a7b98793d8cbcc
drm/exynos: fix memory leak to EDID block

drm_get_edid() returns a pointer to an EDID block. The caller
is responsible to free this pointer itself.
Here the pointer gets assigned to the local variable raw_edid.
Therefore it should be freed before the variable goes out of
scope.

Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c