diff options
| author | Andreas Ruprecht <rupran@einserver.de> | 2011-12-02 17:30:23 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-08 11:30:24 -0800 |
| commit | d666c0d490d85d35fe6d6d45ba029cf16046dc82 (patch) | |
| tree | 4c05c17164216b5db6dcdb80b78a06d0f2cc4573 /tools/perf/scripts/python | |
| parent | bba42776f5bade198d3bf918689da02acb63dadb (diff) | |
Staging: iio/accel: Added a range check for val in store_measurement_mode()
In sca3000_store_measurement_mode() we use val to and it with a mask.
This mask is only two bits long (as we are only interested in the
lowest two bits), so a value bigger than 3 was silently ignored so
far.
Now this function will return -EINVAL, if val is bigger than 3.
Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
