iio: acpi: always initialise data in iio_get_acpi_device_name_and_data()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | iio: acpi: Fill data with NULL when iio_get_acpi_device_name_and_data() failsdrivers/ | +5 | 2 replies | |
| 2/4 | iio: accel: kxcjk-1013: Drop duplicate NULL check in kxcjk1013_probe()drivers/ | +1 | 0 replies | |
| 3/4 | iio: accel: kxcjk-1013: Deduplicate ODR startup time arraydrivers/ | +4 | 0 replies | |
| 4/4 | iio: light: isl29018: Check if name is valid in isl29018_probe()drivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH v1 0/4] iio: acpi: always initialise data in iio_get_acpi_device_name_and_data()
Dan reported that data might be used uninitialised in some cases. Let's initialise it to NULL (patch 1). With that, update one driver to drop an unneeded anymore check (patch 2). Another driver (patch 4) gain almost a dead code — feel free to not apply it.
While at it, one more cleanup to kxcjk-1013 (patch 3) 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-2 to the initial code. The rest seems to me like the independent patches.
Andy Shevchenko (4):
iio: acpi: Fill data with NULL when
iio_get_acpi_device_name_and_data() fails
iio: accel: kxcjk-1013: Drop duplicate NULL check in kxcjk1013_probe()
iio: accel: kxcjk-1013: Deduplicate ODR startup time array
iio: light: isl29018: Check if name is valid in isl29018_probe()
drivers/iio/accel/kxcjk-1013.c | 28 +++++----------------------- drivers/iio/industrialio-acpi.c | 6 +++++- drivers/iio/light/isl29018.c | 2 ++ 3 files changed, 12 insertions(+), 24 deletions(-)
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac