diff options
author | Goldwyn Rodrigues <[email protected]> | 2015-07-22 12:09:15 -0500 |
---|---|---|
committer | NeilBrown <[email protected]> | 2015-07-24 13:37:51 +1000 |
commit | b0c26a79d6993b280931f8e2b406ca4b220bb58f (patch) | |
tree | 5180d2cbe3ac691e95afc978630a4f1c8521b9c8 /tools/perf/util/trace-event-scripting.c | |
parent | f7357273198adc86fe11c2a7be8a0816f44103bb (diff) |
md: Return error if request_module fails and returns positive value
request_module() can return 256 (process exited) in some cases,
which is not as specified in the documentation before the
request_module() definition. Convert the error to -ENOENT.
The positive error number results in bitmap_create() returning
a value that is meant to be an error but doesn't look like one,
so it is dereferenced as a point and causes a crash.
(not needed for stable as this is "experimental" code)
Fixes: edb39c9deda8 ("Introduce md_cluster_operations to handle cluster functions")
Signed-off-By: Goldwyn Rodrigues <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions