Fix a reference count leak in disk_zone_wplug_handle_error() Fixes: dd291d77cc90 ("block: Introduce zone write plugging") Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> --- block/blk-zoned.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/blk-zoned.c b/block/blk-zoned.c index 70211751df16..3346b8c53605 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -1337,6 +1337,8 @@ static void disk_zone_wplug_handle_error(struct gendisk *disk, unlock: spin_unlock_irqrestore(&zwplug->lock, flags); + + disk_put_zone_wplug(zwplug); } static void disk_zone_wplugs_work(struct work_struct *work)