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 <viro@zeniv.linux.org.uk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Link: https://lore.kernel.org/r/20221122072753.426077-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 5c59789 commit 22c17e2
1 file changed
Lines changed: 6 additions & 1 deletion
| 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