summaryrefslogtreecommitdiffstats
path: root/drivers/net/Kconfig
diff options
context:
space:
mode:
authorAndreas Ruprecht2011-11-27 23:17:42 +0100
committerGreg Kroah-Hartman2011-11-29 02:12:06 +0100
commit3b724ca14565747926c23af1fa1afb1848c3f448 (patch)
treeb9e2fd6b22e5ec186badbfb9f3d8df23a295cd80 /drivers/net/Kconfig
parentStaging: iio/accel: Changed data type for val to unsigned long in write_frequ... (diff)
downloadkernel-qcow2-linux-3b724ca14565747926c23af1fa1afb1848c3f448.tar.gz
kernel-qcow2-linux-3b724ca14565747926c23af1fa1afb1848c3f448.tar.xz
kernel-qcow2-linux-3b724ca14565747926c23af1fa1afb1848c3f448.zip
Staging: iio/accel: Changed data type of val in store_measurement_mode to u8
The code in sca3000_store_measurement_mode() uses the variable val to do bitwise operations with an int mask and or-s it into st->rx[0] which is an entry in a u8 array (see sca3000.h). This means up to now values larger than a u8 were silently ignored and just the lower 8 bits counted into the value that was written into st->rx[0]. This code will return -ERANGE if the value in buf was too large to fit into a u8. Signed-off-by: Andreas Ruprecht <rupran@einserver.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/Kconfig')
0 files changed, 0 insertions, 0 deletions