aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2024-03-30 09:53:00 +0900
committerJens Axboe <[email protected]>2024-04-02 07:43:24 -0600
commitfbbd5d3ad9435748b8ae6451bc004ee9ac49b6b7 (patch)
treea02515e43cd737d87a7b1485dda9e954197f0fae /tools/perf/scripts/python/libxed.py
parent39cd87c4eb2b893354f3b850f916353f2658ae6f (diff)
nullblk: Fix cleanup order in null_add_dev() error path
In null_add_dev(), if an error happen after initializing the resources for a zoned null block device, we must free these resources before exiting the function. To ensure this, move the out_cleanup_zone label after out_cleanup_disk as we jump to this latter label if an error happens after calling null_init_zoned_dev(). Fixes: e440626b1caf ("null_blk: pass queue_limits to blk_mq_alloc_disk") Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions