diff options
| author | Nihar Chaithanya <niharchaithanya@gmail.com> | 2024-12-30 21:56:26 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-07 17:38:55 +0300 |
| commit | cf95c0c4e06353e647520132bb90e1c2fea1ffb7 (patch) | |
| tree | 9763041423f0df28ddbb68ba04905905ef69d25a /scripts/patch-kernel | |
| parent | f07296bc75ba01bd260b8f805725b2217750b7e3 (diff) | |
| download | linux-cf95c0c4e06353e647520132bb90e1c2fea1ffb7.tar.xz | |
staging: gpib: fluke: Handle gpib_register_driver() errors
The function gpib_register_driver() can fail, resulting in a
semi-registered module and does not return an error value if it
fails.
Unregister the previous platform driver and gpib registering
functions if subsequent gpib_register_driver() fail and return the
error value. Add pr_err() statements indicating the fail and the error
value.
Signed-off-by: Nihar Chaithanya <niharchaithanya@gmail.com>
Link: https://lore.kernel.org/r/20241230185633.175690-7-niharchaithanya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
