original_kernel/drivers
Hans de Goede 0998d06310 device-core: Ensure drvdata = NULL when no driver is bound
1) drvdata is for a driver to store a pointer to driver specific data
2) If no driver is bound, there is no driver specific data associated with
   the device
3) Thus logically drvdata should be NULL if no driver is bound.

But many drivers don't clear drvdata on device_release, or set drvdata
early on in probe and leave it set on probe error. Both of which results
in a dangling pointer in drvdata.

This patch enforce for drvdata to be NULL after device_release or on probe
failure.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-13 16:40:41 -07:00
..
accessibility
acpi Merge branches 'bugfix-battery', 'bugfix-misc', 'bugfix-rafael', 'bugfix-turbostat', 'bugfix-video' and 'workaround-pss' into release 2012-06-04 00:48:41 -04:00
amba
ata
atm
auxdisplay
base device-core: Ensure drvdata = NULL when no driver is bound 2012-06-13 16:40:41 -07:00
bcma
block
bluetooth
cdrom
char char/agp: add another Ironlake host bridge 2012-06-06 17:05:29 +02:00
clk
clocksource
connector
cpufreq
cpuidle
crypto
dca
devfreq
dio
dma
edac
eisa
extcon
firewire
firmware
gpio
gpu Revert "drm/i915/crt: Do not rely upon the HPD presence pin" 2012-06-08 14:53:06 -07:00
hid
hsi
hv
hwmon
hwspinlock
i2c i2c: Add generic I2C multiplexer using pinctrl API 2012-06-04 16:49:43 +02:00
ide
idle
ieee802154
iio
infiniband Merge branches 'cxgb4', 'mlx4' and 'ocrdma' into for-linus 2012-06-06 10:08:11 -07:00
input
iommu iommu/amd: Fix deadlock in ppr-handling error path 2012-06-04 12:47:44 +02:00
isdn
leds
lguest
macintosh
md md: 2 fixes for 3.5-rc 2012-06-06 09:49:28 -07:00
media
memory
memstick
message
mfd
misc
mmc
mtd UBI: correct ubi_wl_flush locking 2012-06-07 15:22:21 +03:00
net InfiniBand/RDMA fixes for 3.5-rc2, all in hardware drivers: 2012-06-06 10:45:21 -07:00
nfc
nubus
of
oprofile
parisc
parport
pci
pcmcia
pinctrl
platform drivers/platform/x86/acerhdf.c: correct Boris' mail address 2012-06-07 14:43:55 -07:00
pnp
power W1: split master mutex to avoid deadlocks. 2012-06-13 16:38:40 -07:00
pps
ps3
ptp
rapidio
regulator
remoteproc
rpmsg
rtc Merge branches 'bugfix-battery', 'bugfix-misc', 'bugfix-rafael', 'bugfix-turbostat', 'bugfix-video' and 'workaround-pss' into release 2012-06-04 00:48:41 -04:00
s390
sbus
scsi
sfi
sh
sn
spi
ssb
staging Frontswap provides a "transcendent memory" interface for swap pages. 2012-06-04 12:28:45 -07:00
target
tc
thermal
tty
uio
usb
uwb
vhost
video
virt
virtio
vlynq
vme
w1 W1: split master mutex to avoid deadlocks. 2012-06-13 16:38:40 -07:00
watchdog
xen Frontswap provides a "transcendent memory" interface for swap pages. 2012-06-04 12:28:45 -07:00
zorro
Kconfig
Makefile