aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2012-11-27 07:24:00 +0000
committerJonathan Cameron <[email protected]>2012-11-30 13:09:22 +0000
commit12660138b491b56d1e70333547912c56741be5e8 (patch)
tree321742511bde3e748bb986f81300fc002d7834bf /net/lapb/lapb_timer.c
parentbc0a409c5ffd91b5403037ab2798b84dccee4f06 (diff)
iio:gyro: adis16136: divide by zero in write_frequency()
It's slightly cleaner to use kstrtouint() because we pass unsigned ints to adis16136_set_freq(). On 64 bit systems, if the user passed LONG_MIN then it we would get past the test against zero but crash in adis16136_set_freq() because we truncate the high bits away. Signed-off-by: Dan Carpenter <[email protected]> Acked-By: Lars-Peter Clausen <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions