Re: [PATCH] drm/dsi: Do the 'msg' check prior to dereferencing it.

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

 



On Tue, Dec 16, 2014 at 10:04:34PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
> 
> Commit a52879e8d7cb ("drm/dsi: Add message to packet translator") caused 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)
> 
> Do the 'msg' check prior to dereferencing it.
> 
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> 
> Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
> ---
>  drivers/gpu/drm/drm_mipi_dsi.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

I've had an equivalent patch in the drm/panel tree for almost two weeks
but had forgotten to push. Pushed now.

Thierry

Attachment: pgpkT4XPDykqE.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