diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2021-06-22 15:07:54 -0500 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-06-28 11:34:44 +0200 |
commit | 1bcad8e510b27ad843315ab2c27ccf459e3acded (patch) | |
tree | e6728c0defae4e27ab7e91bb55a9919b5c54b597 /tools | |
parent | 71d69e82f4168713afd89804d6e5f52d0e3848a2 (diff) | |
download | lwn-1bcad8e510b27ad843315ab2c27ccf459e3acded.tar.gz lwn-1bcad8e510b27ad843315ab2c27ccf459e3acded.zip |
platform/x86: think-lmi: Fix issues with duplicate attributes
On an AMD based Lenovo T14, I find that the module doesn't work at
all, and instead has a traceback with messages like:
```
sysfs: cannot create duplicate filename '/devices/virtual/firmware-attributes/thinklmi/attributes/Reserved'
```
Duplicate and reserved values showing up appear to be a firmware bug,
but they shouldn't make the driver explode. So catch them and skip
them.
Fixes: a40cd7ef22fb ("platform/x86: think-lmi: Add WMI interface support on Lenovo platforms")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20210622200755.12379-2-mario.limonciello@amd.com
[hdegoede@redhat.com: Add missing kfree(tlmi_priv.setting[i])]
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions