* re: [media] tm6000: rewrite IR support
@ 2011-12-13 8:12 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2011-12-13 8:12 UTC (permalink / raw)
To: mchehab; +Cc: linux-media
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-13 8:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 8:12 [media] tm6000: rewrite IR support Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox