projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a7bd25
)
drm/ttm: fix return value check
author
Christian König
<christian.koenig@amd.com>
Fri, 9 Apr 2021 12:58:43 +0000
(14:58 +0200)
committer
Christian König
<christian.koenig@amd.com>
Wed, 21 Apr 2021 13:35:11 +0000
(15:35 +0200)
The function returns the number of swapped pages here. Only abort when we get
a negative error code.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210409130113.1459-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_tt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_tt.c
b/drivers/gpu/drm/ttm/ttm_tt.c
index 7dcd3fb6949568dee07110f3358c1db4f72488b0..7d479095dcf8c90898b4f1eeb0d2f7b047ea091f 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_tt.c
+++ b/
drivers/gpu/drm/ttm/ttm_tt.c
@@
-326,7
+326,7
@@
int ttm_tt_populate(struct ttm_device *bdev,
ttm_dma32_pages_limit) {
ret = ttm_global_swapout(ctx, GFP_KERNEL);
- if (ret)
+ if (ret
< 0
)
goto error;
}