diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2015-04-13 18:40:49 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-04-26 19:43:08 +0100 |
commit | 1d93353da536d3403ac291dc96070f434f6cf285 (patch) | |
tree | 356164fad3cc6ff85d1d47332efabcd220570539 /init | |
parent | ae2ec9597c9329fdf503af264966bc7e421daa58 (diff) | |
download | op-kernel-dev-1d93353da536d3403ac291dc96070f434f6cf285.zip op-kernel-dev-1d93353da536d3403ac291dc96070f434f6cf285.tar.gz |
iio: accel: mma9553: check input value for activity period
When setting the activity period, the value introduced by
the user in sysfs is not checked for validity.
Add a boundary check so that only allowed values are
reported as successfully written to device.
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Reported-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions