kernel-fxtec-pro1x/drivers/usb/misc
Julien Brunel bedf0883cb USB: drivers/usb/misc: Use an IS_ERR test rather than a NULL test
In case of error, the function backlight_device_register returns an
ERR pointer, but never returns a NULL pointer. So a NULL test that may
come after a call to this function should be strengthened by an IS_ERR
test.

The semantic match that finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@match_bad_null_test@
expression x, E;
statement S1,S2;
@@
x = backlight_device_register(...)
... when != x = E
* if (x != NULL) 
S1 else S2
// </smpl>

Signed-off-by: Julien Brunel <brunel@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-10-17 14:40:53 -07:00
..
sisusbvga USB: sisusbvga: add USB ID for 0711:0918 Magic Control Technology Corp. 2008-08-21 10:26:39 -07:00
adutux.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
appledisplay.c USB: drivers/usb/misc: Use an IS_ERR test rather than a NULL test 2008-10-17 14:40:53 -07:00
berry_charge.c USB: fix memory leak in berry_charge driver 2007-10-12 14:55:20 -07:00
cypress_cy7c63.c USB: cypress_cy7c63: updated contact/usage information 2008-02-01 14:34:50 -08:00
cytherm.c USB: fix read vs. disconnect race in cytherm driver 2007-10-25 12:18:44 -07:00
emi26.c emi26: use request_firmware() 2008-07-10 14:49:12 +01:00
emi62.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
ftdi-elan.c USB: ftdi_usb: Eliminate ioctl and BKL ioctl use 2008-07-21 15:16:18 -07:00
idmouse.c USB: fix locking in idmouse 2007-10-25 12:18:44 -07:00
iowarrior.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
isight_firmware.c isight_firmware: fix a leak and double kfree() 2008-08-12 16:07:28 -07:00
Kconfig USB: Added driver for a Delcom USB 7-segment LED Display 2008-10-17 14:40:51 -07:00
ldusb.c USB: remove PICDEM FS USB demo (04d8:000c) device from ldusb 2008-05-14 10:00:29 -07:00
legousbtower.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
Makefile USB: Added driver for a Delcom USB 7-segment LED Display 2008-10-17 14:40:51 -07:00
phidget.c USB: Put phidgets driver in a sysfs class 2006-09-27 11:58:49 -07:00
phidget.h USB: Put phidgets driver in a sysfs class 2006-09-27 11:58:49 -07:00
phidgetkit.c device create: usb: convert device_create_drvdata to device_create 2008-10-16 09:24:45 -07:00
phidgetmotorcontrol.c device create: usb: convert device_create_drvdata to device_create 2008-10-16 09:24:45 -07:00
phidgetservo.c device create: usb: convert device_create_drvdata to device_create 2008-10-16 09:24:45 -07:00
rio500.c USB: rio100: Push down the BKL 2008-07-21 15:16:20 -07:00
rio500_usb.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
trancevibrator.c USB: fix error handling in trancevibrator 2008-02-21 15:38:51 -08:00
usb_u132.h Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 2006-12-01 16:41:58 -08:00
usblcd.c USB: usblcd: Push down BKL into driver 2008-07-21 15:16:18 -07:00
usbled.c USB: fix usbled disconnect read race #2 2007-11-28 13:58:33 -08:00
usbsevseg.c USB: Added driver for a Delcom USB 7-segment LED Display 2008-10-17 14:40:51 -07:00
usbtest.c Rename WARN() to WARNING() to clear the namespace 2008-07-25 10:53:29 -07:00
uss720.c [PARPORT] Kill useful 'irq' arg from parport_{generic_irq,ieee1284_interrupt} 2007-10-23 19:53:15 -04:00