summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>2014-11-06 12:11:00 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 11:14:02 -0700
commitb32b30d35e5c0859fe88eabfbb0572aaccb9f46f (patch)
tree8a2b91f43e3334a2c3cf24cf239be5d59d69f9d5 /fs
parent1cf3347a2ebe1fddafed4613dd2dc3d2b0fd6b6c (diff)
iio: of_iio_channel_get_by_name() returns non-null pointers for error legs
commit a2c12493ed7e63a18cef33a71686d12ffcd6600e upstream. Currently in the inkern.c code for IIO framework, the function of_iio_channel_get_by_name() will return a non-NULL pointer when it cannot find a channel using of_iio_channel_get() and when it tries to search for 'io-channel-ranges' property and fails. This is incorrect behaviour as the function which calls this expects a NULL pointer for failure. This patch rectifies the issue. Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions