Re: [PATCH] iio: ad9523: fix a missing check of return value

2018-12-22 Thread Jonathan Cameron
On Thu, 20 Dec 2018 01:21:22 -0600 Kangjie Lu wrote: > If ad9523_write() fails, indio_dev may get incorrect data. The fix > inserts a check for the return value of ad9523_write(), and it fails, > returns an error. > > Signed-off-by: Kangjie Lu Applied to the togreg branch of iio.git and pushed

[PATCH] iio: ad9523: fix a missing check of return value

2018-12-19 Thread Kangjie Lu
If ad9523_write() fails, indio_dev may get incorrect data. The fix inserts a check for the return value of ad9523_write(), and it fails, returns an error. Signed-off-by: Kangjie Lu --- drivers/iio/frequency/ad9523.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git