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] [day] [month] [year] [list]
Message-ID: <CAHp75Vf=GOsvXsCmbKzpiui2=jbetTkm9Yru9ZCp9T0+txMF-g@mail.gmail.com>
Date: Wed, 3 Dec 2025 11:16:26 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Haotian Zhang <vulab@...as.ac.cn>
Cc: lars@...afoo.de, michael.hennerich@...log.com, jic23@...nel.org, 
	dlechner@...libre.com, nuno.sa@...log.com, andy@...nel.org, 
	linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: adc: ad7606: Fix incorrect type for error return variable

On Wed, Dec 3, 2025 at 7:09 AM Haotian Zhang <vulab@...as.ac.cn> wrote:
>
> The variable ret is declared as unsigned int but is used to store return
> values from functions returning int, which may be negative error codes.
>
> Change ret from unsigned int to int.

> Fixes: 849cebf8dc67 ("iio: adc: ad7606: Add iio-backend support")

Since it returns an int, it is just double conversion (however in the
standard promotion from unsigned to signed is UB if I remember
correctly). That said, I am not sure this justifies the Fixes tag, but
I'm not against it.

Reviewed-by: Andy Shevchenko <andy@...nel.org>

-- 
With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ