linux-stable/drivers
Michael Nosthoff 055c49dcf1 iio: st_pressure: st_accel: pass correct platform data to init
commit 8b438686a0 upstream.

Commit 7383d44b added a pointer pdata which get set to the default
platform_data when non was defined in the device. But it did not
pass this pointer to the st_sensors_init_sensor call but still
used the maybe uninitialized platform_data from dev.

This breaks initialization when no platform_data is given and
the optional st,drdy-int-pin devicetree option is not set.

This commit fixes this.

Cc: stable@vger.kernel.org
Fixes: 7383d44b ("iio: st_pressure: st_accel: Initialise sensor platform data properly")
Signed-off-by: Michael Nosthoff <committed@heine.so>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-28 18:39:19 +02:00
..
accessibility
acpi ACPI / power: Delay turning off unused power resources after suspend 2018-03-24 11:00:20 +01:00
amba
android binder: add missing binder_unlock() 2018-02-28 10:18:33 +01:00
ata ahci: Add Intel Cannon Lake PCH-H PCI ID 2018-02-17 13:21:15 +01:00
atm atm: horizon: Fix irq release error 2017-12-14 09:28:24 +01:00
auxdisplay auxdisplay: img-ascii-lcd: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE 2018-02-13 12:35:55 +01:00
base drivers: base: cacheinfo: fix boot error message when acpi is enabled 2018-01-31 12:55:51 +01:00
bcma
block mtip32xx: use runtime tag to initialize command header 2018-03-24 11:00:17 +01:00
bluetooth Bluetooth: btqcomsmd: Fix skb double free corruption 2018-03-24 11:00:22 +01:00
bus sunxi-rsb: Include OF based modalias in device uevent 2018-01-10 09:29:52 +01:00
cdrom
char ipmi/watchdog: fix wdog hang on panic waiting for ipmi response 2018-03-24 11:00:18 +01:00
clk clk: migrate the count of orphaned clocks at init 2018-03-24 11:00:26 +01:00
clocksource clocksource/drivers/stm32: Fix kernel panic with multiple timers 2018-02-17 13:21:20 +01:00
connector
cpufreq cpufreq/sh: Replace racy task affinity logic 2018-03-24 11:00:10 +01:00
cpuidle cpuidle: fix broadcast control when broadcast can not be entered 2017-12-25 14:23:46 +01:00
crypto crypto: s5p-sss - Fix kernel Oops in AES-ECB mode 2018-02-25 11:05:56 +01:00
dax device-dax: implement ->split() to catch invalid munmap attempts 2018-02-28 10:18:33 +01:00
dca
devfreq PM / devfreq: Propagate error from devfreq_add_device() 2018-02-22 15:43:52 +01:00
dio
dma dmaengine: ti-dma-crossbar: Fix event mapping for TPCC_EVT_MUX_60_63 2018-03-24 11:00:26 +01:00
dma-buf dma-buf: Update kerneldoc for sync_file_create 2017-12-09 22:01:56 +01:00
edac EDAC, altera: Fix peripheral warnings for Cyclone5 2018-03-22 09:17:48 +01:00
eisa
extcon
firewire
firmware efi/esrt: Cleanup bad memory map log messages 2017-12-20 10:07:26 +01:00
fmc
fpga
gpio gpio: gpio-wcove: fix GPIO IRQ status mask 2018-03-24 11:00:17 +01:00
gpu drm/omap: DMM: Check for DMM readiness after successful transaction commit 2018-03-24 11:00:25 +01:00
hid HID: elo: clear BTN_LEFT mapping 2018-03-22 09:17:53 +01:00
hsi HSI: ssi_protocol: double free in ssip_pn_xmit() 2018-03-24 11:00:12 +01:00
hv x86/retpoline/hyperv: Convert assembler indirect jumps 2018-01-17 09:38:59 +01:00
hwmon driver: (adm1275) set the m,b and R coefficients correctly for power 2018-03-22 09:17:43 +01:00
hwspinlock
hwtracing coresight: Fix disabling of CoreSight TPIU 2018-03-24 11:00:25 +01:00
i2c i2c: i2c-scmi: add a MS HID 2018-03-24 11:00:10 +01:00
ide
idle idle: i7300: add PCI dependency 2018-02-25 11:05:55 +01:00
iio iio: st_pressure: st_accel: pass correct platform data to init 2018-03-28 18:39:19 +02:00
infiniband RDMA/ucma: Don't allow join attempts for unsupported AF family 2018-03-24 11:00:27 +01:00
input Input: twl4030-pwrbutton - use correct device for irq request 2018-03-24 11:00:20 +01:00
iommu iommu/vt-d: clean up pr_irq if request_threaded_irq fails 2018-03-24 11:00:25 +01:00
ipack
irqchip irqchip/mips-gic: Separate IPI reservation & usage tracking 2018-03-24 11:00:11 +01:00
isdn ISDN: eicon: reduce stack size of sig_ind function 2018-02-25 11:05:55 +01:00
leds led: core: Clear LED_BLINK_SW flag in led_blink_set() 2018-03-24 11:00:08 +01:00
lguest
lightnvm
macintosh
mailbox
mcb
md md/raid10: skip spare disk as 'first' disk 2018-03-24 11:00:20 +01:00
media media: [RESEND] media: dvb-frontends: Add delay to Si2168 restart 2018-03-24 11:00:23 +01:00
memory ARM: OMAP2+: gpmc-onenand: propagate error on initialization failure 2017-12-14 09:28:16 +01:00
memstick
message
mfd mfd: palmas: Reset the POWERHOLD mux during power off 2018-03-24 11:00:16 +01:00
misc lkdtm: turn off kcov for lkdtm_rodata_do_nothing: 2018-03-22 09:17:49 +01:00
mmc mmc: avoid removing non-removable hosts during suspend 2018-03-24 11:00:24 +01:00
mtd mtd: nand: ifc: update bufnum mask for ver >= 2.0.0 2018-03-22 09:17:55 +01:00
net qmi_wwan: set FLAG_SEND_ZLP to avoid network initiated disconnect 2018-03-24 11:00:23 +01:00
nfc NFC: pn533: change order of free_irq and dev unregistration 2018-03-22 09:17:46 +01:00
ntb
nubus
nvdimm libnvdimm, dax: fix 1GB-aligned namespaces vs physical misalignment 2018-02-28 10:18:34 +01:00
nvme nvme: check hw sectors before setting chunk sectors 2018-03-03 10:23:20 +01:00
nvmem
of of: fix of_device_get_modalias returned length when truncating buffers 2018-03-22 09:17:41 +01:00
oprofile
parisc parisc: Hide Diva-built-in serial aux and graphics card 2017-12-29 17:42:59 +01:00
parport
pci PCI: Apply Cavium ACS quirk only to CN81xx/CN83xx/CN88xx devices 2018-03-22 09:17:45 +01:00
pcmcia
perf drivers/perf: arm_pmu: handle no platform_device 2018-03-22 09:17:51 +01:00
phy phy: work around 'phys' references to usb-nop-xceiv devices 2018-01-23 19:57:07 +01:00
pinctrl pinctrl: rockchip: enable clock when reading pin direction register 2018-03-24 11:00:25 +01:00
platform platform/chrome: Use proper protocol transfer function 2018-03-24 11:00:24 +01:00
pnp
power power: supply: pda_power: move from timer to delayed_work 2018-03-24 11:00:20 +01:00
powercap
pps
ps3
ptp time: Change posix clocks ops interfaces to use timespec64 2018-03-24 11:00:09 +01:00
pwm pwm: stmpe: Fix wrong register offset for hwpwm=2 case 2018-03-22 09:17:55 +01:00
rapidio drivers/rapidio/devices/rio_mport_cdev.c: fix resource leak in error handling path in 'rio_dma_transfer()' 2017-12-14 09:28:22 +01:00
ras
regulator regulator: anatop: set default voltage selector for pcie 2018-03-24 11:00:09 +01:00
remoteproc
reset
rpmsg
rtc rtc: ds1374: wdt: Fix stop/start ioctl always returning -EINVAL 2018-03-24 11:00:22 +01:00
s390 s390/qeth: fix IPA command submission race 2018-03-11 16:21:34 +01:00
sbus
scsi scsi: mac_esp: Replace bogus memory barrier with spinlock 2018-03-24 11:00:15 +01:00
sfi
sh
sn
soc soc/fsl/qe: round brg_freq to 1kHz granularity 2018-03-24 11:00:19 +01:00
spi spi: dw: Disable clock after unregistering the host 2018-03-24 11:00:10 +01:00
spmi
ssb
staging staging: wilc1000: fix unchecked return value 2018-03-24 11:00:17 +01:00
target tcm_fileio: Prevent information leak for short reads 2018-03-24 11:00:20 +01:00
tc
thermal thermal: fix INTEL_SOC_DTS_IOSF_CORE dependencies 2018-02-25 11:05:52 +01:00
thunderbolt
tty pty: cancel pty slave port buf's work in tty_release 2018-03-24 11:00:25 +01:00
uio
usb usb: gadget: f_hid: fix: Move IN request allocation to set_alt() 2018-03-24 11:00:27 +01:00
uwb
vfio vfio/spapr_tce: Check kzalloc() return when preregistering memory 2018-03-22 09:17:51 +01:00
vhost vhost: use mutex_lock_nested() in vhost_dev_lock_vqs() 2018-02-25 11:05:39 +01:00
video omapdrm: panel: fix compatible vendor string for td028ttec1 2018-03-24 11:00:25 +01:00
virt
virtio virtio_ring: fix num_free handling in error case 2018-03-18 11:18:50 +01:00
vlynq
vme
w1
watchdog watchdog: Fix potential kref imbalance when opening watchdog 2018-03-24 11:00:24 +01:00
xen xen/gntdev: Fix partial gntdev_mmap() cleanup 2018-03-03 10:23:28 +01:00
zorro
Kconfig
Makefile usb: build drivers/usb/common/ when USB_SUPPORT is set 2018-02-25 11:05:45 +01:00