WSL2-Linux-Kernel/drivers
Boris Brezillon bdf3a3b59a
spi: Check presence the of ->transfer[_xxx]() before registering a controller
Right now, no checks are done on the presence of a ->transfer[_xxx]()
method, which can lead to a NULL pointer dereference when someone
starts sending something on the bus.

Do the check at registration time and refuse to add the controller if
all ->transfer[_xxx]() pointers are NULL.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-04-26 13:53:29 +01:00
..
accessibility
acpi IOMMU Updates for Linux v4.17 2018-04-11 18:50:41 -07:00
amba
android
ata
atm
auxdisplay
base mm: check __highest_present_section_nr directly in memory_dev_init() 2018-04-11 10:28:31 -07:00
bcma
block The big ticket items are: 2018-04-10 12:25:30 -07:00
bluetooth
bus pci-v4.17-changes 2018-04-06 18:31:06 -07:00
cdrom
char RTC for 4.17 2018-04-10 10:22:27 -07:00
clk
clocksource
connector
cpufreq cpufreq: Drop cpufreq_table_validate_and_show() 2018-04-10 08:40:45 +02:00
cpuidle cpuidle: menu: Avoid selecting shallow states with stopped tick 2018-04-09 11:54:57 +02:00
crypto
dax libnvdimm for 4.17 2018-04-10 10:25:57 -07:00
dca
devfreq
dio
dma DMAengine updates for v4.17-rc1 2018-04-10 12:14:37 -07:00
dma-buf
edac
eisa
extcon
firewire
firmware MIPS changes for 4.17 2018-04-10 11:39:22 -07:00
fmc
fpga
fsi
gpio
gpu remoteproc updates for v4.17 2018-04-10 12:09:27 -07:00
hid
hsi
hv ARM: 2018-04-09 11:42:31 -07:00
hwmon hwmon updates for v4.17 2018-04-09 19:59:54 -07:00
hwspinlock
hwtracing
i2c Merge branch 'i2c/for-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2018-04-07 12:36:18 -07:00
ide
idle
iio
infiniband Merge candidates for 4.17 merge window 2018-04-06 17:35:43 -07:00
input
iommu IOMMU Updates for Linux v4.17 2018-04-11 18:50:41 -07:00
ipack
irqchip IOMMU Updates for Linux v4.17 2018-04-11 18:50:41 -07:00
isdn
leds
lightnvm
macintosh powerpc updates for 4.17 2018-04-07 12:08:19 -07:00
mailbox
mcb
md libnvdimm for 4.17 2018-04-10 10:25:57 -07:00
media remoteproc updates for v4.17 2018-04-10 12:09:27 -07:00
memory
memstick
message
mfd
misc powerpc updates for 4.17 2018-04-07 12:08:19 -07:00
mmc
mtd This pull request contains updates for both UBI and UBIFS: 2018-04-11 16:39:34 -07:00
mux
net More power management updates for 4.17-rc1 2018-04-11 17:03:20 -07:00
nfc
ntb
nubus
nvdimm libnvdimm for 4.17 2018-04-10 10:25:57 -07:00
nvme
nvmem
of proc: add seq_put_decimal_ull_width to speed up /proc/pid/smaps 2018-04-11 10:28:33 -07:00
opp
oprofile
parisc
parport
pci powerpc updates for 4.17 2018-04-07 12:08:19 -07:00
pcmcia Merge branch 'for-linus-sa1100' of git://git.armlinux.org.uk/~rmk/linux-arm 2018-04-09 09:26:36 -07:00
perf
phy
pinctrl
platform platform-drivers-x86 for v4.17-1 2018-04-10 12:18:50 -07:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio rapidio: use a reference count for struct mport_dma_req 2018-04-11 10:28:37 -07:00
ras
regulator
remoteproc remoteproc: fix null pointer dereference on glink only platforms 2018-04-05 22:53:16 -07:00
reset
rpmsg
rtc RTC for 4.17 2018-04-10 10:22:27 -07:00
s390 libnvdimm for 4.17 2018-04-10 10:25:57 -07:00
sbus
scsi
sfi
sh
siox
slimbus
sn
soc remoteproc updates for v4.17 2018-04-10 12:09:27 -07:00
soundwire
spi spi: Check presence the of ->transfer[_xxx]() before registering a controller 2018-04-26 13:53:29 +01:00
spmi
ssb
staging page cache: use xa_lock 2018-04-11 10:28:39 -07:00
target
tc
tee
thermal
thunderbolt
tty Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2018-04-09 09:04:10 -07:00
uio
usb Merge branch 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2018-04-07 11:11:41 -07:00
uwb
vfio VFIO updates for v4.17-rc1 2018-04-06 19:44:27 -07:00
vhost Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-04-09 17:04:10 -07:00
video fbdev changes for v4.17: 2018-04-10 10:20:00 -07:00
virt
virtio virtio: feature 2018-04-11 18:58:27 -07:00
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile