diff options
author | Adam Thomson <[email protected]> | 2014-11-06 12:11:00 +0000 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2014-06-21 12:31:38 +0100 |
commit | a2c12493ed7e63a18cef33a71686d12ffcd6600e (patch) | |
tree | af4d43b6129b5184fe2bf620cdfd4a52e960ab4b /net/unix/af_unix.c | |
parent | b70e19c222a64018d308ebc80333575aff9f4e51 (diff) |
iio: of_iio_channel_get_by_name() returns non-null pointers for error legs
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 <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Cc: [email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions