lists.openwall.net   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  linux-cve-announce  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]
Message-ID: <17e484a2c07c0a521120a6a3cab7dfcf5f3c2fee.camel@gmail.com>
Date: Wed, 03 Jul 2024 13:08:13 +0200
From: Nuno Sá <noname.nuno@...il.com>
To: Guillaume Stols <gstols@...libre.com>, Lars-Peter Clausen
 <lars@...afoo.de>,  Michael Hennerich <Michael.Hennerich@...log.com>,
 Jonathan Cameron <jic23@...nel.org>, Rob Herring <robh@...nel.org>, 
 Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org, 
 linux-fbdev@...r.kernel.org, devicetree@...r.kernel.org, Jonathan Cameron
 <Jonathan.Cameron@...wei.com>, jstephan@...libre.com, dlechner@...libre.com
Subject: Re: [PATCH v3 6/8] iio: adc: ad7606: fix oversampling gpio array

On Tue, 2024-07-02 at 17:34 +0000, Guillaume Stols wrote:
> gpiod_set_array_value was misused here: the implementation relied on the
> assumption that an unsigned long was required for each gpio, while the
> function expects a bit array stored in "as much unsigned long as needed
> for storing one bit per GPIO", i.e it is using a bit field.
> 
> This leaded to incorrect parameter passed to gpiod_set_array_value, that
> would set 1 value instead of 3.
> It also prevents to select the software mode correctly for the AD7606B.
> 
> Fixes: d2a415c86c6b ("iio: adc: ad7606: Add support for AD7606B ADC")
> Fixes: 41f71e5e7daf ("staging: iio: adc: ad7606: Use find_closest() macro")
> Signed-off-by: Guillaume Stols <gstols@...libre.com>
> ---

Reviewed-by: Nuno Sa <nuno.sa@...log.com>



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ