[nouveau:master 1/80] nouveau_connector.c:535 nouveau_connector_set_property() warn: variable dereferenced before check 'nv_encoder'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>                     Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux