commit | 31a99443a53aa65cdaaaaa3bcd5ed685eec87419 | [log] [tgz] |
---|---|---|
author | Cristina Moraru <cristina.moraru09@gmail.com> | Sun Oct 25 23:31:41 2015 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Oct 27 14:49:09 2015 +0900 |
tree | c2708fe49680cb1af84f2ad8b4e2870c71208873 | |
parent | 1c58f0eb9cd48c8b3426df1b073da796623c2b45 [diff] |
staging: iio: adis16060_core: Fix error handling We need to check adis16060_spi_read return code to avoid feeding user space with bogus data. While, at it introduce out_unlock label in order to simplify locking on error path. Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>