linux-imx/drivers
Axel Lin 35175850a9 hwmon: (ads1015) Fix out-of-bounds array access
commit e981429557 upstream.

Current code uses data_rate as array index in ads1015_read_adc() and uses pga
as array index in ads1015_reg_to_mv, so we must make sure both data_rate and
pga settings are in valid value range.
Return -EINVAL if the setting is out-of-range.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2014-09-13 23:41:43 +01:00
..
accessibility
acpi ACPI / battery: Retry to get battery information if failed during probing 2014-08-06 18:07:36 +01:00
amba
ata ahci: add support for the Promise FastTrak TX8660 SATA HBA (ahci mode) 2014-09-13 23:41:38 +01:00
atm skb: Add inline helper for getting the skb end offset from head 2014-06-09 13:29:00 +01:00
auxdisplay
base drivers/base/memory.c: fix show_mem_removable() to handle missing sections 2013-09-10 01:57:35 +01:00
bcma bcma: mips: fix clearing device IRQ 2013-01-03 03:33:33 +00:00
block floppy: don't write kernel-only members to FDRAWCMD ioctl output 2014-05-18 14:58:10 +01:00
bluetooth bluetooth: hci_ldisc: fix deadlock condition 2014-07-11 13:33:33 +01:00
cdrom drivers/cdrom/cdrom.c: use kzalloc() for failing hardware 2013-07-27 05:34:33 +01:00
char tpm: Provide a generic means to override the chip returned timeouts 2014-09-13 23:41:40 +01:00
clk
clocksource
connector connector: improved unaligned access error fix 2014-01-03 04:33:32 +00:00
cpufreq powernow-k6: reorder frequencies 2014-04-30 16:23:27 +01:00
cpuidle
crypto crypto: caam - add allocation failure handling in SPRINTFCAT macro 2014-06-09 13:29:02 +01:00
dca dca: check against empty dca_domains list before unregister provider 2013-03-06 03:22:35 +00:00
devfreq
dio
dma dma: mv_xor: Flush descriptors before activating a channel 2014-06-09 13:29:15 +01:00
edac i7300_edac: Fix device reference count 2014-04-02 00:58:55 +01:00
eisa EISA/PCI: Init EISA early, before PNP 2013-04-10 03:20:07 +01:00
firewire firewire: add minor number range check to fw_device_init() 2013-03-06 03:24:16 +00:00
firmware dmi: add support for exact DMI matches in addition to substring matching 2014-05-18 14:58:06 +01:00
gpio gpio: mxs: Allow for recursive enable_irq_wake() call 2014-04-30 16:23:23 +01:00
gpu drm/radeon: load the lm63 driver for an lm64 thermal chip. 2014-09-13 23:41:43 +01:00
hid HID: core: fix validation of report id 0 2014-07-11 13:33:35 +01:00
hv drivers: hv: additional switch to use mb() instead of smp_mb() 2014-04-30 16:23:27 +01:00
hwmon hwmon: (ads1015) Fix out-of-bounds array access 2014-09-13 23:41:43 +01:00
hwspinlock hwspinlock: fix __hwspin_lock_request error path 2013-04-25 20:25:32 +01:00
i2c i2c: s3c2410: resume race fix 2014-06-09 13:29:12 +01:00
ide
idle intel_idle: Check cpu_idle_get_driver() for NULL before dereferencing it. 2014-04-02 00:59:02 +01:00
ieee802154
infiniband RDMA/iwcm: Use a default listen backlog if needed 2014-09-13 23:41:43 +01:00
input Input: synaptics - fix resolution for manually provided min/max 2014-07-11 13:33:48 +01:00
iommu iommu/vt-d: Exclude devices using RMRRs from IOMMU API domains 2014-09-13 23:41:40 +01:00
isdn isdnloop: several buffer overflows 2014-04-30 16:23:18 +01:00
leds drivers/leds/leds-lp5521.c: fix lp5521_read() error handling 2013-01-03 03:32:51 +00:00
lguest
macintosh
mca
md md/raid1,raid10: always abort recover on write error. 2014-09-13 23:41:40 +01:00
media gspca_pac7302: Add new usb-id for Genius i-Look 317 2014-09-13 23:41:38 +01:00
memstick
message
mfd mfd: 88pm860x: Fix possible NULL pointer dereference on i2c_new_dummy error 2014-04-30 16:23:23 +01:00
misc enclosure: fix WARN_ON in dual path device removing 2014-01-03 04:33:27 +00:00
mmc mmc: sdhci: fix lockdep error in tuning routine 2014-04-02 00:58:44 +01:00
mtd mtd/ftl: fix the double free of the buffers allocated in build_maps() 2014-09-13 23:41:38 +01:00
net sunvnet: clean up objects created in vnet_new() on vnet_exit() 2014-08-06 18:07:39 +01:00
nfc
nubus
of of: fix PCI bus match for PCIe slots 2014-04-02 00:58:48 +01:00
oprofile oprofile: perf: use NR_CPUS instead or nr_cpumask_bits for static array 2012-07-04 05:44:25 +01:00
parisc include <linux/prefetch.h> in drivers/parisc/iommu-helpers.h 2013-09-10 01:57:31 +01:00
parport parport: parport_pc: remove double PCI ID for NetMos 2014-04-02 00:58:39 +01:00
pci PCI: shpchp: Check bridge's secondary (not primary) bus speed 2014-06-09 13:29:12 +01:00
pcmcia pcmcia/vrc4171: Add missing spinlock init 2013-03-06 03:23:44 +00:00
pinctrl
platform thinkpad-acpi: fix issuing duplicated key events for brightness up/down 2014-06-09 13:29:01 +01:00
pnp pnpacpi: fix incorrect TEST_ALPHA() test 2013-01-03 03:33:30 +00:00
power power: max17040: Fix NULL pointer dereference when there is no platform_data 2014-04-02 00:58:47 +01:00
pps pps: Fix a use-after free bug when unregistering a source. 2013-03-06 03:23:58 +00:00
ps3
ptp
rapidio rapidio/tsi721: Fix interrupt mask when handling MSI 2013-06-19 02:16:38 +01:00
regulator regulator: max8998: Ensure enough delay time for max8998_set_voltage_buck_time_sel 2013-02-06 04:33:28 +00:00
rtc rtc: rtc-at91rm9200: fix infinite wait for ACKUPD irq 2014-07-11 13:33:47 +01:00
s390 qeth: avoid buffer overflow in snmp ioctl 2014-01-03 04:33:18 +00:00
sbus
scsi hpsa: fix bad -ENOMEM return value in hpsa_big_passthru_ioctl 2014-09-13 23:41:39 +01:00
sfi
sh
sn
spi spi/mpc512x-psc: optionally keep PSC SS asserted across xfer segmensts 2013-04-10 03:20:07 +01:00
ssb
staging Drivers: scsi: storvsc: Implement a eh_timed_out handler 2014-09-13 23:41:39 +01:00
target target: Explicitly clear ramdisk_mcp backend pages 2014-07-11 13:33:58 +01:00
tc
telephony telephony: ijx: buffer overflow in ixj_write_cid() 2013-01-03 03:33:53 +00:00
thermal thermal: return an error on failure to register thermal class 2013-04-25 20:25:43 +01:00
tty serial: core: Preserve termios c_cflag for console resume 2014-09-13 23:41:37 +01:00
uio Fix a few incorrectly checked [io_]remap_pfn_range() calls 2013-11-28 14:02:05 +00:00
usb USB: serial: ftdi_sio: Add support for new Xsens devices 2014-09-13 23:41:42 +01:00
uwb uwb: fix error handling 2012-05-11 13:13:55 +01:00
vhost vhost: validate vhost_get_vq_desc return value 2014-04-30 16:23:17 +01:00
video matroxfb: perform a dummy read of M_STATUS 2014-07-11 13:33:36 +01:00
virt
virtio virtio_balloon: don't softlockup on huge balloon changes. 2014-04-30 16:23:22 +01:00
vlynq
w1 w1: fix w1_send_slave dropping a slave id 2014-04-30 16:23:19 +01:00
watchdog watchdog: ath79_wdt: avoid spurious restarts on AR934x 2014-07-11 13:33:49 +01:00
xen xen/manage: fix potential deadlock when resuming the console 2014-08-06 18:07:34 +01:00
zorro
Kconfig
Makefile