diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-04-19 15:35:48 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-04-27 07:16:45 +0100 |
commit | c894acc7bf400d039bf740420b22f0b71b7fb504 (patch) | |
tree | 5a2e665773ec3f814211a5c3c8f82c273fc7ff92 /fs/ioctl.c | |
parent | c36662193b4e2e37e0e2084ca34585478526fa88 (diff) | |
download | linux-stable-c894acc7bf400d039bf740420b22f0b71b7fb504.tar.gz linux-stable-c894acc7bf400d039bf740420b22f0b71b7fb504.tar.bz2 linux-stable-c894acc7bf400d039bf740420b22f0b71b7fb504.zip |
iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value
Ensure that when an invalid value in ret or value is found -EINVAL
is returned. A previous commit broke the way the return error is
being returned and instead caused the return code in ret to be
re-assigned rather than be returned.
Fixes: 5d9854eaea776 ("iio: hid-sensor: Store restore poll and hysteresis on S3")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'fs/ioctl.c')
0 files changed, 0 insertions, 0 deletions