From: Dan Carpenter Date: Tue, 27 Nov 2012 07:24:00 +0000 (+0000) Subject: iio:gyro: adis16136: divide by zero in write_frequency() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12660138b491b56d1e70333547912c56741be5e8;p=pandora-kernel.git 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 Acked-By: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed