Re: drm/dsi: Add message to packet translator

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

 



On Wed, Dec 17, 2014 at 02:53:05AM +0300, Dan Carpenter wrote:
> 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

I've had a patch in my tree for almost two weeks now, I wonder why this
is still there...

Ah, forgot to push it of course. Done now.

Thierry

Attachment: pgpIrBawW6AED.pgp
Description: PGP signature

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux