dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* re: drm/radeon: add audio support for DCE6/8 GPUs (v12)
@ 2013-09-03  9:24 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-09-03  9:24 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 b530602fd462: "drm/radeon: add audio support for DCE6/8 
GPUs (v12)" from Jul 31, 2013, leads to the following Smatch 
complaint:

drivers/gpu/drm/radeon/dce6_afmt.c:91 dce6_afmt_select_pin()
	 warn: variable dereferenced before check 'dig->afmt->pin' (see line 89)

drivers/gpu/drm/radeon/dce6_afmt.c
    88		u32 offset = dig->afmt->offset;
    89		u32 id = dig->afmt->pin->id;
                         ^^^^^^^^^^^^^^^^^^
Patch adds dereference.

    90	
    91		if (!dig->afmt->pin)
                    ^^^^^^^^^^^^^^^
Patch adds check.

    92			return;
    93	

regards,
dan carpenter

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

only message in thread, other threads:[~2013-09-03  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03  9:24 drm/radeon: add audio support for DCE6/8 GPUs (v12) Dan Carpenter

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