]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mmc: initialized disk->minors
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Jun 2021 08:01:44 +0000 (10:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:34:04 +0000 (15:34 -0600)
Fix a let hunk from the blk_mq_alloc_disk conversion.

Fixes: 281ea6a5bfdc ("mmc: switch to blk_mq_alloc_disk")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20210621080144.3655131-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/mmc/core/block.c

index e7f89cbf92328a8d5678c576a590f07ca2b381fe..9890a1532cb0b23344866c2ab60197f0a97dcb25 100644 (file)
@@ -2331,6 +2331,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
        md->queue.blkdata = md;
 
        md->disk->major = MMC_BLOCK_MAJOR;
+       md->disk->minors = perdev_minors;
        md->disk->first_minor = devidx * perdev_minors;
        md->disk->fops = &mmc_bdops;
        md->disk->private_data = md;