Hi Guenter,
This is v2 of the lenovo-ec-sensors fix series.
The original v1 [1] included a combined patch for both the EC signature
fix and the I/O resource conversion, along with other driver fixes.
Based on your feedback, this v2 makes the following changes:
- Dropped the "Fix NULL pointer dereference" patch (previously patch 2).
- Keep the original case of default case, remove the dev_err.
Patch 1 converts manual request_region()/release_region() calls to
devm_request_region(), eliminating a double-release on the probe error
path and a release-after-use window on module exit.
Patch 2 fixes the EC "MCHP" signature check that used && instead of ||,
which caused the validation to accept a non-Microchip EC if any single
byte of the expected 4-byte signature happened to match.
Both patches apply cleanly against v7.1-rc3 and pass checkpatch with
0 errors, 0 warnings.
[1] https://sashiko.dev/#/patchset/20260514011411.4167069-1-rh_king@163.com
Kean (2):
hwmon: (lenovo-ec-sensors): Convert to devm_request_region()
hwmon: (lenovo-ec-sensors): Fix EC "MCHP" signature validation logic
drivers/hwmon/lenovo-ec-sensors.c | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
--
2.53.0