On Sat, 2023-10-21 at 18:58:32 UTC, Richard Weinberger wrote:
Since commit 2736e8eeb0ccd ("block: use the holder as indication for exclusive opens") blkdev_put() requires a valid holder argument. So, do so also in block2mtd to unbreak bdev->bd_holder refcounting.
Cc: Christoph Hellwig hch@lst.de Cc: stable@vger.kernel.org Fixes: 2736e8eeb0ccd ("block: use the holder as indication for exclusive opens") Signed-off-by: Richard Weinberger richard@nod.at Reviewed-by: Christoph Hellwig hch@lst.de
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel