linux/drivers/gpu/drm/amd/display/dc/dcn303
Anson Jacob 03388a347f drm/amd/display: Fix memory leak reported by coverity
Free memory allocated if any of the previous allocations failed.

>>>     CID 1487129:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "vpg" going out of scope leaks the storage it points to.

Addresses-Coverity-ID: 1487129: ("Resource leaks")

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-08-31 14:19:00 -04:00
..
dcn303_dccg.h
dcn303_hwseq.c drm/amd/display: add dummy PG callback for beige goby 2021-06-11 16:04:04 -04:00
dcn303_hwseq.h drm/amd/display: add dummy PG callback for beige goby 2021-06-11 16:04:04 -04:00
dcn303_init.c drm/amd/display: add dummy PG callback for beige goby 2021-06-11 16:04:04 -04:00
dcn303_init.h
dcn303_resource.c drm/amd/display: Fix memory leak reported by coverity 2021-08-31 14:19:00 -04:00
dcn303_resource.h
Makefile