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
..
2012-09-14 20:54:44 +02:00
2012-07-27 15:14:26 -07:00
2012-09-13 00:24:29 -04:00
2012-08-06 13:29:57 -07:00
2012-08-28 21:01:01 +02:00
2012-08-02 13:51:46 -04:00
2012-08-25 11:36:43 -07:00
2012-08-27 08:36:42 -05:00
2012-08-17 09:21:35 +02:00
2012-07-30 17:25:13 -07:00
2012-08-21 16:45:02 -07:00
2012-07-16 23:23:52 -07:00
2012-08-23 17:02:42 +02:00
2012-08-17 19:37:08 +02:00
2012-09-12 07:14:17 +08:00
2012-08-13 10:15:22 +05:30
2012-07-29 21:11:05 -03:00
2012-09-16 13:22:21 -07:00
2012-07-30 09:32:39 -07:00
2012-07-31 19:07:42 -07:00
2012-09-01 12:52:24 +02:00
2012-09-14 15:45:01 +10:00
2012-09-22 10:33:14 +01:00
2012-07-31 19:07:42 -07:00
2012-09-12 06:42:11 -07:00
2012-09-14 17:55:57 -07:00
2012-08-21 14:54:42 -07:00
2012-08-17 19:37:14 +02:00
2012-07-12 07:54:45 -07:00
2012-09-22 10:29:19 +01:00
2012-08-16 09:38:39 -07:00
2012-09-08 16:20:59 -07:00
2012-08-10 11:34:08 +02:00
2012-09-13 14:58:54 -04:00
2012-08-13 14:34:02 +08:00
2012-08-18 09:51:42 +10:00
2012-08-21 16:54:38 -07:00
2012-07-30 17:25:17 -07:00
2012-09-16 13:22:21 -07:00
2012-08-21 16:45:03 -07:00
2012-09-04 13:58:11 -04:00
2012-09-04 09:40:26 +03:00
2012-09-13 16:37:52 -04:00
2012-07-09 16:42:24 -04:00
2012-08-20 02:16:00 -07:00
2012-07-24 16:17:07 -07:00
2012-08-23 10:53:08 -06:00
2012-07-27 15:14:26 -07:00
2012-08-17 11:09:58 +02:00
2012-09-13 16:46:31 -04:00
2012-09-22 10:40:23 +01:00
2012-07-30 17:25:21 -07:00
2012-09-10 17:04:38 +02:00
2012-08-21 16:45:03 -07:00
2012-09-16 13:22:21 -07:00
2012-07-26 16:19:08 -07:00
2012-07-26 16:19:08 -07:00
2012-08-27 17:07:37 -07:00
2012-08-28 10:08:31 +02:00
2012-08-22 09:42:54 +04:00
2012-08-09 13:21:05 +09:00
2012-08-25 11:45:04 -07:00
2012-09-22 10:55:08 +01:00
2012-09-07 11:32:54 -07:00
2012-07-31 18:08:25 -07:00
2012-09-05 12:44:44 -07:00
2012-09-12 11:12:31 -07:00
2012-08-22 10:26:42 -04:00
2012-08-20 14:52:11 -07:00
2012-08-23 12:37:22 +00:00
2012-07-20 08:59:03 +01:00
2012-07-19 15:39:39 -07:00
2012-08-16 12:33:59 -07:00
2012-08-29 17:13:06 +02:00
2012-09-06 09:22:02 -04:00
2012-07-15 19:56:38 +02:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00