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

2014-12-17 Thread Thierry Reding
On Tue, Dec 16, 2014 at 10:04:34PM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > 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 dereferenc

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

2014-12-16 Thread Fabio Estevam
From: Fabio Estevam 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 dereferenci