diff options
| author | Shao Mingyin <shao.mingyin@zte.com.cn> | 2026-10-31 22:17:37 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-11-03 07:09:24 -0700 |
| commit | 703f6aee8d8d1cb6227af56169be6b1dc4d3c4d5 (patch) | |
| tree | 536bb715b31839d2d3a4c89634b2b403a850294f /scripts/livepatch | |
| parent | 2516f0413f8704a7370ef8a2eeae26c9bc438978 (diff) | |
zloop: fix the error code in the blk_mq_alloc_disk message
When blk_mq_alloc_disk() fails, "ret" still holds the zero returned by the
preceding blk_mq_alloc_tag_set() call, so the error message always reports
"err=0". Save PTR_ERR(zlo->disk) in "ret" before printing it, like the
blk_mq_alloc_tag_set() and add_disk() failure paths do.
Fixes: eb0570c7df23 ("block: new zoned loop block device driver")
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://patch.msgid.link/20261031221737569WQ3bg8y80Ht7JdTCWwlkL@zte.com.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/livepatch')
0 files changed, 0 insertions, 0 deletions
