alistair23-linux/drivers/iio/adc
Manfred Schlaegl 41be6a0d5a iio: mcp320x: Fix NULL pointer dereference
On reading in_voltage_scale of we got an NULL pointer dereference Oops.

The reason for this is, that mcp320x_read_raw tries to access
chip_info->resolution from struct mcp320x, but chip_info is never set.

chip_info was never set since the driver was added, but there was no
acute problem, because it was not referenced.
The acute problem exists since
b12206e917
iio: adc: mcp320x. Add support for more ADCs

This patch fixes the issue by setting chip_info in mcp320x_probe.

Signed-off-by: Manfred Schlaegl <manfred.schlaegl@gmx.at>
Reviewed-by: Michael Welling <mwelling@ieee.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-07-19 13:58:51 +01:00
..
ad799x.c
ad7266.c
ad7291.c
ad7298.c
ad7476.c
ad7791.c
ad7793.c
ad7887.c
ad7923.c
ad_sigma_delta.c
at91_adc.c iio: adc: at91_adc: allow to use full range of startup time 2015-07-19 11:48:06 +01:00
axp288_adc.c Second set of new driver, functionality and cleanups for IIO in the 4.2 cycle. 2015-05-24 11:45:21 -07:00
berlin2-adc.c iio: adc: add support for Berlin 2015-05-23 10:47:40 +01:00
cc10001_adc.c iio: adc: cc10001: Add delay before setting START bit 2015-05-12 20:01:13 +01:00
da9150-gpadc.c
exynos_adc.c
Kconfig iio:adc:cc10001_adc: fix Kconfig dependency 2015-07-19 11:48:12 +01:00
lp8788_adc.c
Makefile iio: adc: add support for Berlin 2015-05-23 10:47:40 +01:00
max1027.c
max1363.c
mcp320x.c iio: mcp320x: Fix NULL pointer dereference 2015-07-19 13:58:51 +01:00
mcp3422.c
men_z188_adc.c
nau7802.c
qcom-spmi-iadc.c
qcom-spmi-vadc.c iio: adc: spmi-vadc: Fix overflow in output value normalization 2015-04-18 17:40:04 +01:00
rockchip_saradc.c iio: adc: rockchip_saradc: add missing MODULE_* data 2015-07-19 11:47:58 +01:00
ti-adc081c.c
ti-adc128s052.c iio:adc128s052: add support for adc122s021 2015-05-23 12:42:43 +01:00
ti_am335x_adc.c iio: adc: ti_am335x_adc: make sample delay, open delay, averaging DT parameters 2015-05-13 18:37:22 +01:00
twl4030-madc.c iio: twl4030-madc: Pass the IRQF_ONESHOT flag 2015-07-19 11:48:00 +01:00
twl6030-gpadc.c iio: adc: twl6030-gpadc: Fix modalias 2015-05-23 12:30:52 +01:00
vf610_adc.c iio: adc: vf610: fix the adc register read fail issue 2015-07-19 13:35:26 +01:00
viperboard_adc.c
xilinx-xadc-core.c iio: adc: xilinx: Fix VREFN sign 2015-04-19 13:49:54 +01:00
xilinx-xadc-events.c
xilinx-xadc.h iio: adc: xilinx: Fix register addresses 2015-04-19 13:47:58 +01:00