From: Sascha Hauer Date: Tue, 3 Jul 2012 08:55:40 +0000 (+0200) Subject: iio: Fix unitialized use of list X-Git-Tag: v3.6-rc1~100^2~336^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46b24311ccc8b37da9e6e006c6158229a5354268;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed