diff options
| author | 2024-12-31 00:26:30 +0530 | |
|---|---|---|
| committer | 2025-01-07 15:38:55 +0100 | |
| commit | 44aaeb2c0843ea37f6235c173d2e8f8df3be1704 (patch) | |
| tree | 5850cb0a7a9520a988fa302eda60bfe48db52d6a /include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com | |
| parent | staging: gpib: hp_82335: Return error value from gpib_register_driver() (diff) | |
staging: gpib: hp_82341: 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.
Return the error value if the first gpib_register_driver() fails
and if the second gpib_register_driver() fails unregister the first
gpib_register_driver() 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-11-niharchaithanya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
