android_kernel_samsung_a7y1.../drivers
Alexandru Ardelean 73884fe92a iio: imu: adis16480: assign bias value only if operation succeeded
commit 9b742763d9d4195e823ae6ece760c9ed0500c1dc upstream.

This was found only after the whole thing with the inline functions, but
the compiler actually found something. The value of the `bias` (in
adis16480_get_calibbias()) should only be set if the read operation was
successful.

No actual known problem occurs as users of this function all
ultimately check the return value.  Hence probably not stable material.

Fixes: 2f3abe6cbb6c9 ("iio:imu: Add support for the ADIS16480 and similar IMUs")
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:37:00 +02:00
..
accessibility
acpi ACPI: PM: Avoid attaching ACPI PM domain to certain devices 2020-04-07 13:07:24 +02:00
amba
android ANDROID: binder: synchronize_rcu() when using POLLFREE. 2020-04-07 08:06:59 +02:00
ata libata: Ensure ata_port probe has completed before detach 2020-04-07 13:20:53 +02:00
atm atm: zatm: Fix empty body Clang warnings 2020-04-07 12:35:08 +02:00
auxdisplay
base x86/bugs: Add ITLB_MULTIHIT bug infrastructure 2020-04-07 12:00:26 +02:00
battery
battery_v2
bcma
block rsxx: add missed destroy_workqueue calls in remove 2020-04-07 12:44:10 +02:00
bluetooth Bluetooth: btusb: fix PM leak in error case of setup 2020-04-07 13:24:51 +02:00
bts
bus
ccic
cdrom cdrom: respect device capabilities during opening action 2020-04-07 13:23:35 +02:00
char hwrng: omap3-rom - Call clk_disable_unprepare() on exit only if not idled 2020-04-07 13:20:24 +02:00
clk clk: pxa: fix one of the pxa RTC clocks 2020-04-07 13:23:20 +02:00
clocksource clocksource/drivers/asm9260: Add a check for of_clk_get 2020-04-07 13:22:56 +02:00
connector
cpufreq cpufreq: Register drivers only after CPU devices have been registered 2020-04-07 13:21:35 +02:00
cpuidle cpuidle: Do not unset the driver if it is there already 2020-04-07 13:07:18 +02:00
crypto crypto: vmx - Avoid weird build failures 2020-04-07 13:21:48 +02:00
dca
devfreq PM / devfreq: Don't fail devfreq_dev_release if not in list 2020-04-07 13:24:09 +02:00
dio
dma dmaengine: coh901318: Remove unused variable 2020-04-07 12:44:51 +02:00
dma-buf
edac EDAC/ghes: Fix grain calculation 2020-04-07 13:21:28 +02:00
eisa
extcon extcon: sm5502: Reset registers during initialization 2020-04-07 13:20:38 +02:00
fingerprint
firewire net: add annotations on hh->hh_len lockless accesses 2020-04-07 13:25:04 +02:00
firmware gsmi: Fix bug in append_to_eventlog sysfs handler 2020-04-07 12:34:33 +02:00
five
fmc
fpga
gator
gpio gpio: Fix error message on out-of-range GPIO in lookup table 2020-04-07 13:36:46 +02:00
gps
gpu drm/i915/gen9: Clear residual context state on context switch 2020-04-07 13:33:10 +02:00
gud
hid HID: hidraw, uhid: Always report EPOLLOUT 2020-04-07 13:36:12 +02:00
hsi
hv
hwmon hwmon: (pwm-fan) Silence error on probe deferral 2020-04-07 12:33:24 +02:00
hwspinlock
hwtracing stm class: Fix a double free of stm_source_device 2020-04-06 21:33:50 +02:00
i2c i2c: imx: don't print error message on probe defer 2020-04-07 12:45:01 +02:00
ide
idle
iio iio: imu: adis16480: assign bias value only if operation succeeded 2020-04-07 13:37:00 +02:00
infiniband RDMA/srpt: Report the SCSI residual to the initiator 2020-04-07 13:36:52 +02:00
input Input: add safety guards to input_set_keycode() 2020-04-07 13:32:32 +02:00
iommu iommu: Remove device link to group on failure 2020-04-07 13:36:44 +02:00
ipack
irqchip irqchip: ingenic: Error out if IRQ domain creation failed 2020-04-07 13:23:09 +02:00
isdn staging: gigaset: add endpoint-type sanity check 2020-04-07 13:06:29 +02:00
leds leds: leds-lp5562 allow firmware files up to the maximum length 2020-04-07 07:37:48 +02:00
lguest
lightnvm
macintosh macintosh/windfarm_smu_sat: Fix debug output 2020-04-07 12:35:02 +02:00
mailbox
mcb
md md: raid1: check rdev before reference in raid1_sync_request func 2020-04-07 13:24:22 +02:00
media media: usb:zr364xx:Fix KASAN:null-ptr-deref Read in zr364xx_vidioc_querycap 2020-04-07 13:36:20 +02:00
memory
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2020-04-07 09:27:02 +02:00
message
mfd mfd: max8997: Enale irq-wakeup unconditionally 2020-04-07 12:35:27 +02:00
misc scsi: enclosure: Fix stale device oops with hot replug 2020-04-07 13:36:54 +02:00
mmc mmc: sdhci: Update the tuning failed messages to pr_debug level 2020-04-07 13:24:04 +02:00
motor
mtd mtd: spear_smi: Fix Write Burst mode 2020-04-07 13:06:47 +02:00
muic
net wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle 2020-04-07 13:36:34 +02:00
nfc NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error 2020-04-07 12:44:04 +02:00
ntb ntb: intel: fix return value for ndev_vec_mask() 2020-04-07 12:36:03 +02:00
nubus
nvdimm
nvme
nvmem nvmem: core: return error code instead of NULL from nvmem_device_get 2020-04-07 12:27:36 +02:00
of of: make PowerMac cache node search conditional on CONFIG_PPC_PMAC 2020-04-07 12:27:09 +02:00
oprofile
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2020-04-07 07:39:52 +02:00
parport parport: load lowlevel driver if ports not found 2020-04-07 13:21:33 +02:00
pci PCI/MSI: Fix incorrect MSI-X masking on resume 2020-04-07 13:12:43 +02:00
pcmcia
perf
phy
pinctrl pinctrl: sh-pfc: sh7734: Fix duplicate TCLK1_B 2020-04-07 13:20:55 +02:00
platform platform/x86: asus-wmi: Fix keyboard brightness cannot be set to 0 2020-04-07 13:36:58 +02:00
pnp
power PM / AVS: SmartReflex: NULL check before some freeing functions is not needed 2020-04-07 12:41:14 +02:00
powercap
pps
ps3
ptp
pwm pwm: Clear chip_data in pwm_put() 2020-04-07 12:43:26 +02:00
rapidio
ras
regulator regulator: rn5t618: fix module aliases 2020-04-07 13:28:56 +02:00
remoteproc
reset
rpmsg
rtc rtc: mt6397: fix alarm register overwrite 2020-04-07 13:36:42 +02:00
s390 scsi: zfcp: trace channel log even for FCP command responses 2020-04-07 13:07:37 +02:00
sbus
scsi scsi: sd: Clear sdkp->protection_type if disk is reformatted without PI 2020-04-07 13:36:56 +02:00
security/samsung/icdrv
sensorhub
sensors
sfi
sh
sn
soc
spi spi: tegra20-slink: add missed clk_unprepare 2020-04-07 13:21:39 +02:00
spmi
ssb
staging staging: rtl8188eu: Add device code for TP-Link TL-WN727N v5.21 2020-04-07 13:32:50 +02:00
switch
target scsi: target: iscsi: Wait for all commands to finish before freeing a session 2020-04-07 13:23:29 +02:00
tc
tee
thermal thermal: Fix deadlock in thermal thermal_zone_device_check 2020-04-07 12:46:09 +02:00
thunderbolt thunderbolt: Use 32-bit writes when writing ring producer/consumer 2020-04-07 09:27:58 +02:00
trace
tty tty: always relink the port 2020-04-07 13:32:54 +02:00
uh
uio
usb USB: Fix: Don't skip endpoint descriptors with maxpacket=0 2020-04-07 13:33:04 +02:00
uwb
vfio vfio/pci: call irq_bypass_unregister_producer() before freeing irq 2020-04-07 13:12:53 +02:00
vhost vhost: make sure log_num < in_num 2020-04-06 21:35:05 +02:00
video video/hdmi: Fix AVI bar unpack 2020-04-07 13:07:31 +02:00
virt
virtio virtio-balloon: fix managed page counts when migrating pages between zones 2020-04-07 13:06:49 +02:00
vision
vlynq
vme
w1
watchdog
xen xen: let alloc_xenballooned_pages() fail if not enough memory free 2020-04-07 13:36:30 +02:00
zorro
Kconfig
Makefile