diff options
author | Anson Jacob <Anson.Jacob@amd.com> | 2021-08-13 17:11:51 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-08-31 14:19:00 -0400 |
commit | 03388a347fe7cf7c3bdf68b0823ba316d177d470 (patch) | |
tree | 1d10c3a28fbae14552d062a189cc88f719a93f3c /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | f5d8e16488056d9ad48d2561ef4eaf7fdd11c162 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions