aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorSascha Hauer2012-07-03 10:55:40 +0200
committerJonathan Cameron2012-07-08 20:02:24 +0100
commit46b24311ccc8b37da9e6e006c6158229a5354268 (patch)
tree7ff47f0e57a889c74331e6a903ab2f6acbcedd88 /.gitignore
parenta91aff1c09fc41a55ccaa115763ff77e36b527d3 (diff)
iio: Fix unitialized use of list
The dev_attr list is initialized in __iio_add_event_config_attrs which is called only when indio_dev->channels is true. Nevertheless the list is used unconditionally later in iio_device_register_eventset which results in a NULL pointer exception. To fix this unconditionally initialize the list in iio_device_register_eventset. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions