[PATCH] mtd: block2mtd: Add a valid holder to blkdev_put()

Miquel Raynal miquel.raynal at bootlin.com
Fri Oct 27 10:47:07 PDT 2023


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 at lst.de>
> Cc: stable at vger.kernel.org
> Fixes: 2736e8eeb0ccd ("block: use the holder as indication for exclusive opens")
> Signed-off-by: Richard Weinberger <richard at nod.at>
> Reviewed-by: Christoph Hellwig <hch at lst.de>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list