From: Dan Carpenter <dan.carpenter@oracle.com>
To: p.zabel@pengutronix.de
Cc: linux-media@vger.kernel.org
Subject: Re: [media] coda: update CODA7541 to firmware 1.4.50
Date: Fri, 11 Apr 2014 14:08:22 +0300 [thread overview]
Message-ID: <20140411110822.GO4963@mwanda> (raw)
In-Reply-To: <20131106161342.GD15603@elgon.mountain>
What ever happened with this?
regards,
dan carpenter
On Wed, Nov 06, 2013 at 07:13:43PM +0300, Dan Carpenter wrote:
> Hello Philipp Zabel,
>
> This is a semi-automatic email about new static checker warnings.
>
> The patch 5677e3b04d3b: "[media] coda: update CODA7541 to firmware
> 1.4.50" from Jun 21, 2013, leads to the following Smatch complaint:
>
> drivers/media/platform/coda.c:1530 coda_alloc_framebuffers()
> error: we previously assumed 'ctx->codec' could be null (see line 1521)
>
> drivers/media/platform/coda.c
> 1520
> 1521 if (ctx->codec && ctx->codec->src_fourcc == V4L2_PIX_FMT_H264)
> ^^^^^^^^^^
> Patch introduces a new NULL check.
>
> 1522 height = round_up(height, 16);
> 1523 ysize = round_up(q_data->width, 8) * height;
> 1524
> 1525 /* Allocate frame buffers */
> 1526 for (i = 0; i < ctx->num_internal_frames; i++) {
> 1527 size_t size;
> 1528
> 1529 size = q_data->sizeimage;
> 1530 if (ctx->codec->src_fourcc == V4L2_PIX_FMT_H264 &&
> ^^^^^^^^^^^^^^^^^^^^^^
> Patch introduces a new unchecked dereference.
>
> 1531 dev->devtype->product != CODA_DX6)
> 1532 ctx->internal_frames[i].size += ysize/4;
>
> regards,
> dan carpenter
next prev parent reply other threads:[~2014-04-11 11:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-06 16:13 [media] coda: update CODA7541 to firmware 1.4.50 Dan Carpenter
2014-04-11 11:08 ` Dan Carpenter [this message]
2014-04-11 13:04 ` Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140411110822.GO4963@mwanda \
--to=dan.carpenter@oracle.com \
--cc=linux-media@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.