From: Dan Carpenter <dan.carpenter@oracle.com>
To: mchehab@redhat.com
Cc: linux-media@vger.kernel.org
Subject: re: [media] tm6000: rewrite IR support
Date: Tue, 13 Dec 2011 11:12:14 +0300 [thread overview]
Message-ID: <20111213081214.GA28464@elgon.mountain> (raw)
Hello Mauro Carvalho Chehab,
This is a semi-automatic email about new static checker warnings.
The patch 4a83b0115066: "[media] tm6000: rewrite IR support" from Nov
29, 2011, leads to the following Smatch complaint:
drivers/media/video/tm6000/tm6000-input.c +327 __tm6000_ir_int_start()
warn: variable dereferenced before check 'ir' (see line 323)
drivers/media/video/tm6000/tm6000-input.c
322 struct tm6000_IR *ir = rc->priv;
323 struct tm6000_core *dev = ir->dev;
^^^^^^^
New dereference.
324 int pipe, size;
325 int err = -ENOMEM;
326
327 if (!ir)
^^^^^^^^
Old check.
328 return -ENODEV;
329
regards,
dan carpenter
reply other threads:[~2011-12-13 8:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20111213081214.GA28464@elgon.mountain \
--to=dan.carpenter@oracle.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox