diff options
author | Nihar Chaithanya <niharchaithanya@gmail.com> | 2024-12-31 00:26:33 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-07 15:38:56 +0100 |
commit | 635ddb8ccdbde0d917b0a7448b0fd9d6cc27a2a9 (patch) | |
tree | da9c1ee71a3795cfa113972575e10ba24d47250e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e3f4b64edb242ba59095b57f54df64ccecc67aac (diff) |
staging: gpib: ni_usb: Handle gpib_register_driver() errors
The usb_register() function can fail and returns an error value which
is not returned. The function gpib_register_driver() can also fail
which can result in semi-registered module.
In case gpib_register_driver() fails unregister the previous usb driver
registering function. Return the error value if gpib_register_driver()
or usb_register() functions fail. Add pr_err() statements indicating the
fail and error value.
Signed-off-by: Nihar Chaithanya <niharchaithanya@gmail.com>
Link: https://lore.kernel.org/r/20241230185633.175690-14-niharchaithanya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions