linux/drivers/staging/iio
Lars-Peter Clausen 3fff227436 staging:iio:dummy: Fix potential NULL pointer dereference
If the config contains CONFIG_IIO_BUFFER=y and CONFIG_IIO_SIMPLE_DUMMY_BUFFER=n
iio_simple_dummy_configure_buffer() is stubbed out and iio_buffer_register() is
not. As a result we try to register a buffer which has not been configured.
This will causes a NULL pointer deref in iio_buffer_register. To solve this
issue move the iio_buffer_register() call to iio_simple_dummy_configure_buffer(),
so it will only be called if iio_simple_dummy_configure_buffer() has been called.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-09-22 10:55:08 +01:00
..
accel staging:iio:sca3000: Do not return a error in remove function 2012-09-22 10:20:30 +01:00
adc staging:iio:ad7780: Add support for the ad7170/ad7171 2012-09-22 10:25:32 +01:00
addac staging:iio:addac: Use dev_to_iio_dev() 2012-05-14 13:39:20 -07:00
cdc staging:iio: Request threaded-only IRQs with IRQF_ONESHOT 2012-07-08 20:02:24 +01:00
Documentation iio: Documentation change for inkern interface. 2012-09-15 10:02:16 +01:00
frequency staging:iio:frequency: Use dev_to_iio_dev() 2012-05-14 13:39:21 -07:00
gyro staging:iio:adis16200: Do not return a error in remove function 2012-09-22 10:17:17 +01:00
impedance-analyzer iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
imu staging:iio:adis16400: Do not return a error in remove function 2012-09-22 10:17:28 +01:00
light iio: isl29018: Support fractional ALS scaling. 2012-09-08 10:25:10 +01:00
magnetometer staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
meter staging:iio:ade7759: Do not return a error in remove function 2012-09-22 10:19:57 +01:00
resolver staging:iio: Constify static iio_chan_spec arrays 2012-08-14 20:27:42 +01:00
trigger staging:iio:trigger:bfintmr Add output support 2012-09-17 22:10:00 +01:00
iio_dummy_evgen.c staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
iio_dummy_evgen.h staging:iio:dummy Add event support + fake event generator 2011-10-17 15:36:30 -07:00
iio_hwmon.c staging:iio:hwmon bridge: Use iio_read_channel_processed 2012-09-17 21:49:49 +01:00
iio_simple_dummy_buffer.c staging:iio:dummy: Fix potential NULL pointer dereference 2012-09-22 10:55:08 +01:00
iio_simple_dummy_events.c staging: iio: Fix typo in iio 2012-05-08 16:04:12 -07:00
iio_simple_dummy.c staging:iio:dummy: Fix potential NULL pointer dereference 2012-09-22 10:55:08 +01:00
iio_simple_dummy.h staging:iio:dummy: Fix potential NULL pointer dereference 2012-09-22 10:55:08 +01:00
Kconfig iio: fix spelling of subsystem 2012-09-03 20:26:44 +01:00
Makefile staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ring_hw.h staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
ring_sw.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
ring_sw.h IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00
TODO staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00