[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241101081203.3360421-1-andriy.shevchenko@linux.intel.com>
Date: Fri, 1 Nov 2024 10:08:25 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>
Subject: [PATCH v2 0/4] iio: initialise ddata for iio_get_acpi_device_name_and_data()
Dan reported that ddata might be used uninitialised in some cases.
Let's initialise it to NULL (patches 1 - 3). With that, update one driver
to drop an unneeded anymore check (included in patch 3).
While at it, one more cleanup to kxcjk-1013 (patch 4) is added.
Jonathan, dunno if you want to rebase at this stage (probably not),
but if you do, feel free to fold the patches 1-3 to the initial code.
In v2:
- rewritten patches 1-3 to do the job on the caller side (Jonathan)
Andy Shevchenko (4):
iio: light: ltr501: Assing ddata to NULL
iio: light: isl29018: Assing ddata to NULL
iio: accel: kxcjk-1013: Assing ddata to NULL instead of NULL check
iio: accel: kxcjk-1013: Deduplicate ODR startup time array
drivers/iio/accel/kxcjk-1013.c | 30 ++++++------------------------
drivers/iio/light/isl29018.c | 2 +-
drivers/iio/light/ltr501.c | 2 +-
3 files changed, 8 insertions(+), 26 deletions(-)
--
2.43.0.rc1.1336.g36b5255a03ac
Powered by blists - more mailing lists