public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [bug report] drm/tegra: Add Tegra186 display hub support
@ 2018-01-23  8:34 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2018-01-23  8:34 UTC (permalink / raw)
  To: treding-DDmLM1+adcrQT0dZR+AlfA; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA

Hello Thierry Reding,

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

The patch c4755fb9064f: "drm/tegra: Add Tegra186 display hub support" 
from Nov 13, 2017, leads to the following Smatch complaint:

    drivers/gpu/drm/tegra/hub.c:375 tegra_shared_plane_atomic_disable()
    warn: variable dereferenced before check 'old_state' (see line 370)

drivers/gpu/drm/tegra/hub.c
   369	{
   370		struct tegra_dc *dc = to_tegra_dc(old_state->crtc);
                                                  ^^^^^^^^^^^^^^^
Deref

   371		struct tegra_plane *p = to_tegra_plane(plane);
   372		u32 value;
   373	
   374		/* rien ne va plus */
   375		if (!old_state || !old_state->crtc)
                     ^^^^^^^^^
Check too late.

   376			return;
   377	

regards,
dan carpenter

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

only message in thread, other threads:[~2018-01-23  8:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-23  8:34 [bug report] drm/tegra: Add Tegra186 display hub support Dan Carpenter

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