commit | 19c2aedc54b927ab10d3723038182eedf90438a4 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Wed Nov 02 09:40:01 2011 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Sat Nov 26 16:39:58 2011 -0800 |
tree | c097eb93b9f92c37c4c0e8fd0c69cc4435acff8c | |
parent | 43c0364551d3ca0042f6f6a3da701edf1143d62f [diff] |
staging:iio: IIO_EVENT_CODE: Clamp channel numbers Make sure we only use the allotted space for channel numbers in the event mask and do not let them override other fields. Since negative values are valid channel number, cast the channel number to signed when extracting it from an event mask. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>