All of lore.kernel.org
 help / color / mirror / Atom feed
* re: drm/dsi: Add message to packet translator
@ 2014-12-16 23:53 Dan Carpenter
  2014-12-17 10:58 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2014-12-16 23:53 UTC (permalink / raw)
  To: treding; +Cc: dri-devel

Hello Thierry Reding,

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

The patch a52879e8d7cb: "drm/dsi: Add message to packet translator" 
from Oct 16, 2014, leads to the following Smatch complaint:

drivers/gpu/drm/drm_mipi_dsi.c:328 mipi_dsi_create_packet()
	 warn: variable dereferenced before check 'msg' (see line 326)

drivers/gpu/drm/drm_mipi_dsi.c
   325	{
   326		const u8 *tx = msg->tx_buf;
                               ^^^^^^^^^^^
Dereference.

   327	
   328		if (!packet || !msg)
                               ^^^^
Check.

   329			return -EINVAL;
   330	

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] 2+ messages in thread

end of thread, other threads:[~2014-12-17 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 23:53 drm/dsi: Add message to packet translator Dan Carpenter
2014-12-17 10:58 ` Thierry Reding

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.