Commit 22c17e2
blk-mq: fix queue reference leak on blk_mq_alloc_disk_for_queue failure
Drop the request queue reference just acquired when __alloc_disk_node
failed.
Fixes: 6f8191f ("block: simplify disk shutdown")
Reported-by: Al Viro <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 5c59789 commit 22c17e2
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4045 | 4045 | | |
4046 | 4046 | | |
4047 | 4047 | | |
| 4048 | + | |
| 4049 | + | |
4048 | 4050 | | |
4049 | 4051 | | |
4050 | | - | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
4051 | 4056 | | |
4052 | 4057 | | |
4053 | 4058 | | |
| |||
0 commit comments