public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [nouveau:master 1/80] nouveau_connector.c:535 nouveau_connector_set_property() warn: variable derefe
@ 2012-09-19  0:46 Fengguang Wu
  0 siblings, 0 replies; only message in thread
From: Fengguang Wu @ 2012-09-19  0:46 UTC (permalink / raw)
  To: kernel-janitors

Hi Ben,

FYI, a pretty old smatch warning:

drivers/gpu/drm/nouveau/nouveau_connector.c:535 nouveau_connector_set_property() warn: variable dereferenced before check 'nv_encoder' (see line 413)

vim +535 drivers/gpu/drm/nouveau/nouveau_connector.c
   412         struct nouveau_encoder *nv_encoder = nv_connector->detected_encoder;
   413         struct drm_encoder *encoder = to_drm_encoder(nv_encoder);
...
   534	
 > 535		if (nv_encoder && nv_encoder->dcb->type = OUTPUT_TV)
   536			return get_slave_funcs(encoder)->set_property(
   537				encoder, connector, property, value);
   538	
   539		return -EINVAL;
   540	}

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation

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

only message in thread, other threads:[~2012-09-19  0:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-19  0:46 [nouveau:master 1/80] nouveau_connector.c:535 nouveau_connector_set_property() warn: variable derefe Fengguang Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox