All of lore.kernel.org
 help / color / mirror / Atom feed
* re: drm/radeon: implement output csc property for DCE5+
@ 2015-03-24 18:13 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2015-03-24 18:13 UTC (permalink / raw)
  To: alexander.deucher; +Cc: dri-devel

Hello Alex Deucher,

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

The patch 643b1f5629a3: "drm/radeon: implement output csc property 
for DCE5+" from Feb 23, 2015, leads to the following Smatch complaint:

drivers/gpu/drm/radeon/radeon_connectors.c:763 radeon_connector_set_property()
	 error: we previously assumed 'connector->encoder' could be null (see line 751)

drivers/gpu/drm/radeon/radeon_connectors.c
   750		if (property == rdev->mode_info.output_csc_property) {
   751			if (connector->encoder)
                            ^^^^^^^^^^^^^^^^^^
Check.

   752				radeon_encoder = to_radeon_encoder(connector->encoder);
   753			else {
   754				struct drm_connector_helper_funcs *connector_funcs = connector->helper_private;
   755				radeon_encoder = to_radeon_encoder(connector_funcs->best_encoder(connector));
   756			}
   757	
   758			if (radeon_encoder->output_csc == val)
   759				return 0;
   760	
   761			radeon_encoder->output_csc = val;
   762	
   763			if (connector->encoder->crtc) {
                            ^^^^^^^^^^^^^^^^^^
Unchecked dereference.

   764				struct drm_crtc *crtc  = connector->encoder->crtc;
   765				struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private;

regards,
dan carpenter
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

only message in thread, other threads:[~2015-03-24 18:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 18:13 drm/radeon: implement output csc property for DCE5+ 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.