drm/radeon: memory leak on bo reservation failure. v2
authorQuentin Casasnovas <quentin.casasnovas@oracle.com>
Tue, 18 Mar 2014 16:16:52 +0000 (17:16 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 17 Apr 2014 11:59:57 +0000 (13:59 +0200)
commit74073c9dd29905645feb6dee03c144657a9844cd
treee373ca2b975ce8b92e2f0f1d7456ccb1f778f560
parent681941c1790b92207334d08ee017007685f35438
drm/radeon: memory leak on bo reservation failure. v2

On bo reservation failure, we end up leaking fpriv.

v2 (chk): rebased and added missing free on vm failure as well

Fixes: 5e386b574cf7e1 ("drm/radeon: fix missing bo reservation")
Cc: stable@vger.kernel.org
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/radeon_kms.c