mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: cde: set err properly in oom condition
When gk20a_gmmu_map runs out of memory, set the error code before returning early, so that caller knows about that cde load didn't succeed and wouldn't use the bad context. Change-Id: I1e166c78e39f07df941a29fc4e392a853d97a5c6 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/557273 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
2eb6dcb469
commit
1c8fb3178f
@@ -770,6 +770,7 @@ int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
|
||||
|
||||
if (!vaddr) {
|
||||
gk20a_warn(&cde_ctx->pdev->dev, "cde: cannot map compression bit backing store");
|
||||
err = ENOMEM;
|
||||
goto err_map_backingstore;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user