diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-09-18 04:54:30 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2023-10-04 20:57:56 +0200 |
commit | 2ed20dec2a885dd8bea5af104b7bebc4ba5c9e72 (patch) | |
tree | 16c48ef23d77d1b19daf7c5de2c4be6577e0cc2d /tools/perf/scripts/python/task-analyzer.py | |
parent | 29aa98d0fe013e2ab62aae4266231b7fb05d47a2 (diff) |
HID: nvidia-shield: Fix a missing led_classdev_unregister() in the probe error handling path
The commit in Fixes updated the error handling path of
thunderstrike_create() and the remove function but not the error handling
path of shield_probe(), should an error occur after a successful
thunderstrike_create() call.
Add the missing call. Make sure it is safe to call in the probe error
handling path by preventing the led_classdev from attempting to set the LED
brightness to the off state on unregister.
Fixes: f88af60e74a5 ("HID: nvidia-shield: Support LED functionality for Thunderstrike")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions