projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebff5fa
)
drm/vmwgfx: Don't put resources with invalid id's on lru list
author
Thomas Hellstrom
<
[email protected]
>
Wed, 9 Oct 2013 08:42:50 +0000
(
01:42
-0700)
committer
Dave Airlie
<
[email protected]
>
Tue, 15 Oct 2013 18:46:23 +0000
(19:46 +0100)
The evict code may try to swap them out causing a BUG in the destroy
function.
Signed-off-by: Thomas Hellstrom <
[email protected]
>
Reviewed-by: Jakob Bornecrantz <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
index 0e67cf41065d801e6526d23dc5cdf375bdabe1c7..37fb4befec82634ccf3a504428af8ed60f4a0e56 100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
@@
-970,7
+970,7
@@
void vmw_resource_unreserve(struct vmw_resource *res,
if (new_backup)
res->backup_offset = new_backup_offset;
- if (!res->func->may_evict)
+ if (!res->func->may_evict
|| res->id == -1
)
return;
write_lock(&dev_priv->resource_lock);