projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ed10c
)
drm/xe/client: drop bogus bo NULL check
author
Matthew Auld
<matthew.auld@intel.com>
Mon, 18 Mar 2024 09:34:33 +0000
(09:34 +0000)
committer
Matthew Auld
<matthew.auld@intel.com>
Tue, 19 Mar 2024 08:31:43 +0000
(08:31 +0000)
If we fished it out the list then it can't be null; the list entry is
embedded in the bo.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240318093431.21075-4-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_drm_client.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_drm_client.c
b/drivers/gpu/drm/xe/xe_drm_client.c
index 142a1905b624eb73fc93faf33f44f02790d1132c..da154b0595836a3857507ee6e766ec45c6224032 100644
(file)
--- a/
drivers/gpu/drm/xe/xe_drm_client.c
+++ b/
drivers/gpu/drm/xe/xe_drm_client.c
@@
-155,7
+155,7
@@
static void show_meminfo(struct drm_printer *p, struct drm_file *file)
/* Internal objects. */
spin_lock(&client->bos_lock);
list_for_each_entry(bo, &client->bos_list, client_link) {
- if (!
bo || !
kref_get_unless_zero(&bo->ttm.base.refcount))
+ if (!kref_get_unless_zero(&bo->ttm.base.refcount))
continue;
bo_meminfo(bo, stats);
xe_bo_put(bo);