diff options
author | Jan Kara <[email protected]> | 2014-10-22 15:34:21 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2014-10-22 07:59:25 -0600 |
commit | 31f9690e6eaf549f3e643f6a8f7dab84fd31997a (patch) | |
tree | c31966132649fc7154b57536f6f8355251d201f1 /tools/perf/util/trace-event-scripting.c | |
parent | 76d8137a31139f0d69ecc4177497ad6b8d4f016c (diff) |
null_blk: Cleanup error recovery in null_add_dev()
When creation of queues fails in init_driver_queues(), we free the
queues. But null_add_dev() doesn't test for this failure and continues
with the setup leading to strange consequences, likely oops. Fix the
problem by testing whether init_driver_queues() failed and do proper
error cleanup.
Coverity-id: 1148005
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions