blk_alloc_ext_minor already returns just a minor number, so no need to mask the high bits. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- block/genhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/genhd.c b/block/genhd.c index a4817e42f3a3..3ee031c97f22 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -515,7 +515,7 @@ static void __device_add_disk(struct device *parent, struct gendisk *disk, return; } disk->major = BLOCK_EXT_MAJOR; - disk->first_minor = MINOR(ret); + disk->first_minor = ret; disk->flags |= GENHD_FL_EXT_DEVT; } -- 2.30.2