[<prev] [next>] [day] [month] [year] [list]
Message-ID: <c8405b33-8c7a-47c3-afd5-2e6c7e951cb4@web.de>
Date: Fri, 1 Nov 2024 15:10:38 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Dan Carpenter <dan.carpenter@...aro.org>, linux-iio@...r.kernel.org,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: LKML <linux-kernel@...r.kernel.org>, Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>
Subject: Re: [bug report] iio: light: isl29018: Replace a variant of
iio_get_acpi_device_name_and_data()
> Commit 14686836fb69 ("iio: light: isl29018: Replace a variant of
> iio_get_acpi_device_name_and_data()") from Oct 24, 2024 (linux-next),
> leads to the following Smatch static checker warning:
>
> drivers/iio/light/isl29018.c:724 isl29018_probe() error: uninitialized symbol 'ddata'.
> drivers/iio/light/ltr501.c:1514 ltr501_probe() error: uninitialized symbol 'ddata'.
…
How do you think about to extend the mentioned source code analysis tool any more?
See also further development ideas:
* ltr501_probe()
https://lore.kernel.org/linux-kernel/8c7a5bcc-1fdb-45af-8f0c-1f9b6f0cf058@web.de/
https://lkml.org/lkml/2024/11/1/745
* isl29018_probe()
Is there a need to perform a null pointer check also with the local variable “name”
Regards,
Markus
Powered by blists - more mailing lists