summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorNihar Chaithanya <niharchaithanya@gmail.com>2024-12-31 00:26:23 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-07 15:38:55 +0100
commit9e43ebc613e2adb9b9e900e11a4099e104b61f2d (patch)
treec4abb7355b560fe7c4bb7edf0d5d6b9006896c19 /tools/perf/scripts/python/event_analyzing_sample.py
parentf546fa464031423be3dbebc966ad4703f985c9d5 (diff)
staging: gpib: agilent_82357a: 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 when registering driver fails also indicating the error value. Signed-off-by: Nihar Chaithanya <niharchaithanya@gmail.com> Link: https://lore.kernel.org/r/20241230185633.175690-4-niharchaithanya@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions