Re: [PATCH v4 2/3] mmc: block: Add mmc_bdev_to_card() helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 17, 2021 at 04:36:42AM +0300, Dmitry Osipenko wrote:
> +	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.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux