1
linux/drivers/staging
Julia Lawall c60e55f30a Staging: Eliminate a NULL pointer dereference
Eliminate a NULL or near NULL pointer dereference.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r exists@
expression E,E1;
identifier f;
statement S1,S2,S3;
@@

if ((E == NULL && ...) || ...)
{
  ... when != if (...) S1 else S2
      when != E = E1
* E->f
  ... when any
  return ...;
}
else S3
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-04 13:38:57 -07:00
..
adis16255 Staging: adis16255: add proper section markings to hotplug funcs 2010-06-04 13:38:57 -07:00
asus_oled
batman-adv Staging: batman-adv: Don't allocate icmp packet with GFP_KERNEL 2010-06-04 13:38:56 -07:00
comedi Staging: Eliminate a NULL pointer dereference 2010-06-04 13:38:57 -07:00
crystalhd Staging: crystalhd: Remove typedefs from driver 2010-05-18 14:53:17 -07:00
cx25821 Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
cxt1e1
dream i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
dt3155 Staging: Eliminate a NULL pointer dereference 2010-06-04 13:38:57 -07:00
dt3155v4l Staging: dt3155v4l: remove private memory allocator 2010-05-18 14:53:17 -07:00
echo
et131x Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
frontier
go7007 i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
hv Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
iio staging: Use GFP_ATOMIC when a lock is held 2010-06-04 13:38:57 -07:00
line6
memrar
mrst-touchscreen Staging: mid: Intel MID touch screen driver 2010-06-04 13:38:51 -07:00
msm Staging: add MSM framebuffer driver 2010-06-04 13:38:54 -07:00
octeon
otus
panel
phison Staging: phison: depends on ATA_BMDMA 2010-06-04 13:38:57 -07:00
pohmelfs Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6 2010-05-30 09:11:11 -07:00
quatech_usb2
ramzswap Staging: ramzswap: Handler for swap slot free callback 2010-05-18 15:07:52 -07:00
rar_register
rt2860 staging: rt2860: use new hex_to_bin() method 2010-05-25 08:07:05 -07:00
rt2870
rt3070
rtl8187se
rtl8192e
rtl8192su Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
rtl8192u
samsung-laptop
sep
serqt_usb2
slicoss
sm7xx
ti-st
tm6000 V4L/DVB (13554a): v4l: Use the video_drvdata function in drivers 2010-05-19 12:59:18 -03:00
udlfb Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2010-05-21 15:26:46 -07:00
usbip Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
vme staging: Use GFP_ATOMIC when a lock is held 2010-06-04 13:38:57 -07:00
vt6655 Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
vt6656 Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
winbond Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
wlags49_h2 Staging: wlags49_h2, wlags49_h25: fixed Kconfig dependencies 2010-06-04 13:38:57 -07:00
wlags49_h25 Staging: wlags49_h2, wlags49_h25: fixed Kconfig dependencies 2010-06-04 13:38:57 -07:00
wlan-ng
xgifb staging: Add framebuffer driver for XGI chipsets 2010-06-04 13:38:51 -07:00
Kconfig Staging: add MSM framebuffer driver 2010-06-04 13:38:54 -07:00
Makefile Staging: add MSM framebuffer driver 2010-06-04 13:38:54 -07:00
staging.c