lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri,  8 Aug 2014 13:40:06 -0700
From:	Kamal Mostafa <>
Cc:	Peter Meerwald <>,
	Oleksandr Kravchenko <>,
	Jonathan Cameron <>,
	Kamal Mostafa <>
Subject: [PATCH 3.13 183/259] iio:bma180: Missing check for frequency fractional part -stable review patch.  If anyone has any objections, please let me know.


From: Peter Meerwald <>

commit 9b2a4d35a6ceaf217be61ed8eb3c16986244f640 upstream.

val2 should be zero

This will make no difference for correct inputs but will reject
incorrect ones with a decimal part in the value written to the sysfs

Signed-off-by: Peter Meerwald <>
Cc: Oleksandr Kravchenko <>
Signed-off-by: Jonathan Cameron <>
Signed-off-by: Kamal Mostafa <>
 drivers/iio/accel/bma180.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c
index 8d5ea9b..93ff0ba 100644
--- a/drivers/iio/accel/bma180.c
+++ b/drivers/iio/accel/bma180.c
@@ -376,6 +376,8 @@ static int bma180_write_raw(struct iio_dev *indio_dev,
 		return ret;
+		if (val2)
+			return -EINVAL;
 		ret = bma180_set_bw(data, val);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists