From: Lars-Peter Clausen Date: Wed, 2 Nov 2011 08:40:01 +0000 (+0100) Subject: staging:iio: IIO_EVENT_CODE: Clamp channel numbers X-Git-Tag: v3.3-rc1~152^2~101^2~323 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19c2aedc54b927ab10d3723038182eedf90438a4;p=pandora-kernel.git 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 Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed