[bug report] drm/tegra: Add Tegra186 display hub support

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

 



[ I'm not totally certain why this is showing up in my new warnings list
  when it's half a year old.  But it looks legit.  - dan ]

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:386 tegra_shared_plane_atomic_disable()
     warn: variable dereferenced before check 'old_state' (see line 381)

drivers/gpu/drm/tegra/hub.c
   380	{
   381		struct tegra_dc *dc = to_tegra_dc(old_state->crtc);
                                                  ^^^^^^^^^^^^^^^
   382		struct tegra_plane *p = to_tegra_plane(plane);
   383		u32 value;
   384	
   385		/* rien ne va plus */
   386		if (!old_state || !old_state->crtc)
                     ^^^^^^^^^
   387			return;
   388	

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux