diff options
| author | John Garry <[email protected]> | 2021-07-27 09:32:53 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-07-27 22:44:38 +0000 |
| commit | b93af3055d6f32d3b0361cfdb110c9399c1241ba (patch) | |
| tree | 6a0f83ecb4efae850ef4fc13dc98da2c707327f2 /lib/debugobjects.c | |
| parent | loop: reintroduce global lock for safe loop_validate_file() traversal (diff) | |
| download | kernel-b93af3055d6f32d3b0361cfdb110c9399c1241ba.tar.gz kernel-b93af3055d6f32d3b0361cfdb110c9399c1241ba.zip | |
blk-mq-sched: Fix blk_mq_sched_alloc_tags() error handling
If the blk_mq_sched_alloc_tags() -> blk_mq_alloc_rqs() call fails, then we
call blk_mq_sched_free_tags() -> blk_mq_free_rqs().
It is incorrect to do so, as any rqs would have already been freed in the
blk_mq_alloc_rqs() call.
Fix by calling blk_mq_free_rq_map() only directly.
Fixes: 6917ff0b5bd41 ("blk-mq-sched: refactor scheduler initialization")
Signed-off-by: John Garry <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
