* 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* Re: drm/dsi: Add message to packet translator
2014-12-16 23:53 drm/dsi: Add message to packet translator Dan Carpenter
@ 2014-12-17 10:58 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2014-12-17 10:58 UTC (permalink / raw)
To: Dan Carpenter; +Cc: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 909 bytes --]
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 #1.2: Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
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.