android_kernel_samsung_msm8976/drivers
Guenter Roeck 53f281f2b4 hwmon: (lm85) Fix various errors on attribute writes
commit 3248c3b771ddd9d31695da17ba350eb6e1b80a53 upstream.

Temperature limit register writes did not account for negative numbers.
As a result, writing -127000 resulted in -126000 written into the
temperature limit register. This problem affected temp[1-3]_min,
temp[1-3]_max, temp[1-3]_auto_temp_crit, and temp[1-3]_auto_temp_min.

When writing pwm[1-3]_freq, a long variable was auto-converted into an int
without range check. Wiring values larger than MAXINT resulted in unexpected
register values.

When writing temp[1-3]_auto_temp_max, an unsigned long variable was
auto-converted into an int without range check. Writing values larger than
MAXINT resulted in unexpected register values.

vrm is an u8, so the written value needs to be limited to [0, 255].

Cc: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-05 16:28:35 -07:00
..
accessibility
acpi ACPI / battery: Retry to get battery information if failed during probing 2014-07-17 15:58:04 -07:00
amba
ata ahci: add support for the Promise FastTrak TX8660 SATA HBA (ahci mode) 2014-07-31 12:53:49 -07:00
atm
auxdisplay
base drivercore: deferral race condition fix 2014-06-07 13:25:31 -07:00
bcma
block rbd: handle parent_overlap on writes correctly 2014-07-09 11:14:01 -07:00
bluetooth Bluetooth: Ignore H5 non-link packets in non-active state 2014-07-28 08:00:02 -07:00
bus bus: mvebu-mbus: allow several windows with the same target/attribute 2014-06-07 13:25:37 -07:00
cdrom
char applicom: dereferencing NULL on error path 2014-06-30 20:09:41 -07:00
clk clk: spear3xx: Use proper control register offset 2014-07-17 15:58:02 -07:00
clocksource
connector net: Use netlink_ns_capable to verify the permisions of netlink messages 2014-06-26 15:12:37 -04:00
cpufreq cpufreq: Makefile: fix compilation for davinci platform 2014-07-17 15:58:01 -07:00
cpuidle
crypto crypto: caam - add allocation failure handling in SPRINTFCAT macro 2014-06-07 13:25:39 -07:00
dca
devfreq
dio
dma
edac
eisa
extcon extcon: max77693: Fix two NULL pointer exceptions on missing pdata 2014-07-06 18:54:15 -07:00
firewire
firmware
gpio
gpu drm: omapdrm: fix compiler errors 2014-09-05 16:28:35 -07:00
hid HID: fix a couple of off-by-ones 2014-09-05 16:28:34 -07:00
hsi
hv Drivers: hv: util: Fix a bug in the KVP code 2014-07-28 08:00:02 -07:00
hwmon hwmon: (lm85) Fix various errors on attribute writes 2014-09-05 16:28:35 -07:00
hwspinlock
i2c i2c: s3c2410: resume race fix 2014-06-07 13:25:39 -07:00
ide
idle
iio iio: buffer: Fix demux table creation 2014-08-07 14:30:26 -07:00
infiniband IB/umad: Fix use-after-free on close 2014-07-06 18:54:14 -07:00
input Input: fix defuzzing logic 2014-07-31 12:53:50 -07:00
iommu iommu/amd: Fix interrupt remapping for aliased devices 2014-06-07 13:25:40 -07:00
ipack
irqchip irqchip: gic: Fix core ID calculation when topology is read from DT 2014-07-28 08:00:06 -07:00
isdn
leds leds: leds-pwm: properly clean up after probe failure 2014-06-07 13:25:34 -07:00
lguest
macintosh
mailbox
md dm cache metadata: do not allow the data block size to change 2014-07-28 08:00:07 -07:00
media media: tda10071: force modulation to QPSK on DVB-S 2014-07-31 12:53:48 -07:00
memory
memstick
message
mfd
misc mei: start disconnect request timer consistently 2014-09-05 16:28:34 -07:00
mmc mmc: rtsx: add R1-no-CRC mmc command type handle 2014-07-09 11:14:02 -07:00
mtd mtd: nand: omap: fix BCHx ecc.correct to return detected bit-flips in erased-page 2014-07-09 11:14:00 -07:00
net macvlan: Initialize vlan_features to turn on offload support. 2014-08-14 09:24:15 +08:00
nfc
ntb
nubus
of
oprofile
parisc
parport
pci PCI: Fix incorrect vgaarb conditional in WARN_ON() 2014-07-06 18:54:13 -07:00
pcmcia
pinctrl
platform
pnp
power
pps
ps3
ptp
pwm
rapidio rapidio/tsi721_dma: fix failure to obtain transaction descriptor 2014-08-07 14:30:25 -07:00
regulator
remoteproc
reset
rpmsg
rtc rtc: rtc-at91rm9200: fix infinite wait for ACKUPD irq 2014-06-26 15:12:37 -04:00
s390
sbus bbc-i2c: Fix BBC I2C envctrl on SunBlade 2000 2014-08-14 09:24:16 +08:00
scsi scsi: handle flush errors properly 2014-08-07 14:30:25 -07:00
sfi
sh
sn
spi
ssb
ssbi
staging staging: vt6655: Fix Warning on boot handle_irq_event_percpu. 2014-08-07 14:30:26 -07:00
target iscsi-target: Explicily clear login response PDU in exception path 2014-07-06 18:54:13 -07:00
tc
thermal
tty sunsab: Fix detection of BREAK on sunsab serial console 2014-08-14 09:24:16 +08:00
uio
usb USB: Fix persist resume of some SS USB devices 2014-09-05 16:28:34 -07:00
uwb
vfio
vhost
video drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap 2014-07-09 11:14:03 -07:00
virt
virtio
vlynq
vme
w1
watchdog watchdog: ath79_wdt: avoid spurious restarts on AR934x 2014-07-06 18:54:14 -07:00
xen
zorro
Kconfig
Makefile