re: [media] tm6000: rewrite IR support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux