Re: [PATCH v4 2/3] mmc: block: Add mmc_bdev_to_card() helper
From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-08-17 16:10:44
Also in:
linux-block, linux-tegra
From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-08-17 16:10:44
Also in:
linux-block, linux-tegra
17.08.2021 07:37, Christoph Hellwig пишет:
On Tue, Aug 17, 2021 at 04:36:42AM +0300, Dmitry Osipenko wrote:quoted
+ if (bdev->bd_disk->major != MMC_BLOCK_MAJOR) + return NULL;The major is a dangerous check as we have all kinds of ways to override it. Please check the block device operations as they must be unique.
Alright, thank you for the suggestion.