diff options
author | Christophe JAILLET <[email protected]> | 2023-09-18 04:54:30 -0700 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2023-10-05 12:50:34 +0200 |
commit | b07b6b27a50e3a740c9aa6260ee4bb3ab29515ab (patch) | |
tree | b30dbc317ece333430c11aed0d28f9487f0d71f5 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 1437e4547edf41689d7135faaca4222ef0081bc1 (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 <[email protected]>
Reviewed-by: Rahul Rameshbabu <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions