summaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-07-03 10:55:40 +0200
committerJonathan Cameron <jic23@kernel.org>2012-07-08 20:02:24 +0100
commit46b24311ccc8b37da9e6e006c6158229a5354268 (patch)
tree7ff47f0e57a889c74331e6a903ab2f6acbcedd88 /fs/inode.c
parenta91aff1c09fc41a55ccaa115763ff77e36b527d3 (diff)
downloadlinux-46b24311ccc8b37da9e6e006c6158229a5354268.tar.gz
linux-46b24311ccc8b37da9e6e006c6158229a5354268.tar.bz2
linux-46b24311ccc8b37da9e6e006c6158229a5354268.zip
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 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions