diff options
| author | Anson Jacob <[email protected]> | 2021-08-13 21:11:51 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-08-31 18:19:00 +0000 |
| commit | 03388a347fe7cf7c3bdf68b0823ba316d177d470 (patch) | |
| tree | 1d10c3a28fbae14552d062a189cc88f719a93f3c /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/amdgpu/swsmu: fix spelling mistake "minimun" -> "minimum" (diff) | |
| download | kernel-03388a347fe7cf7c3bdf68b0823ba316d177d470.tar.gz kernel-03388a347fe7cf7c3bdf68b0823ba316d177d470.zip | |
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 <[email protected]>
Acked-by: Mikita Lipski <[email protected]>
Signed-off-by: Anson Jacob <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
