aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2015-09-04 12:01:32 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-13 09:43:41 -0700
commit6155a3cf11a6d4ed102ef5a30f655d4d2a38076b (patch)
tree86c904abaec2fb61d9135dcf797eea9332a64648 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent418627ddc6d1ed50a3dfd2c8f938741b0cbcc1ed (diff)
staging: unisys: stop device registration before visorbus registration
In cases where visorbus is compiled directly into the kernel, if visorbus registration fails for any reason, it is still possible for other drivers to call visorbus_register_visor_driver(), which could cause an oops. Prevent this by saving the result of the call to create_bus() in a static variable, and return an error code when the bus hasn't been registered successfully. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions