* [bug report] drm/vmwgfx: Implement DRIVER_GEM
@ 2021-12-15 11:20 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2021-12-15 11:20 UTC (permalink / raw)
To: zackr; +Cc: dri-devel
Hello Zack Rusin,
The patch 8afa13a0583f: "drm/vmwgfx: Implement DRIVER_GEM" from Dec
6, 2021, leads to the following Smatch static checker warning:
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c:574 vmw_user_bo_synccpu_release()
error: uninitialized symbol 'vmw_bo'.
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
564 static int vmw_user_bo_synccpu_release(struct drm_file *filp,
565 uint32_t handle,
566 uint32_t flags)
567 {
568 struct vmw_buffer_object *vmw_bo;
569 int ret = vmw_user_bo_lookup(filp, handle, &vmw_bo);
^^^^^
Can this fail?
570
571 if (!(flags & drm_vmw_synccpu_allow_cs)) {
572 atomic_dec(&vmw_bo->cpu_writers);
573 }
--> 574 ttm_bo_put(&vmw_bo->base);
^^^^^^^^^^^^^
Smatch thinks it can fail.
575
576 return ret;
577 }
regards,
dan carpenter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-15 11:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15 11:20 [bug report] drm/vmwgfx: Implement DRIVER_GEM Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).