All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] drm/i915/gvt: replace the gvt_err with gvt_vgpu_err
@ 2017-03-22 11:24 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2017-03-22 11:24 UTC (permalink / raw)
  To: tina.zhang; +Cc: intel-gfx

Hello Tina Zhang,

This is a semi-automatic email about new static checker warnings.

The patch 695fbc08d80f: "drm/i915/gvt: replace the gvt_err with 
gvt_vgpu_err" from Mar 10, 2017, leads to the following Smatch 
complaint:

drivers/gpu/drm/i915/gvt/kvmgt.c:1344 kvmgt_guest_exit()
	 warn: variable dereferenced before check 'info' (see line 1342)

drivers/gpu/drm/i915/gvt/kvmgt.c
  1341	{
  1342		struct intel_vgpu *vgpu = info->vgpu;
                                          ^^^^^^^^^^
Patch adds a new dereference.

  1343	
  1344		if (!info) {
                    ^^^^^
Existing check.

  1345			gvt_vgpu_err("kvmgt_guest_info invalid\n");
  1346			return false;

regards,
dan carpenter
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-22 11:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-22 11:24 [bug report] drm/i915/gvt: replace the gvt_err with gvt_vgpu_err Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.