mmc: card: Prevent partition scan for the eMMC boot areas
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 3 Sep 2014 09:02:23 +0000 (11:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 12:16:45 +0000 (14:16 +0200)
It seems very unlikely that eMMC devices would hold a standard
partitiontable in one of it's boot areas. Therefore, let's prevent
them from being scanned.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/block.c

index 413f984cb76db02f00f01e09d41929ba7323fe51..e248b960e62c34e49e7e063576d4af2923fab973 100644 (file)
@@ -2136,7 +2136,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
        md->disk->queue = md->queue.queue;
        md->disk->driverfs_dev = parent;
        set_disk_ro(md->disk, md->read_only || default_ro);
-       if (area_type & MMC_BLK_DATA_AREA_RPMB)
+       if (area_type & (MMC_BLK_DATA_AREA_RPMB | MMC_BLK_DATA_AREA_BOOT))
                md->disk->flags |= GENHD_FL_NO_PART_SCAN;
 
        /*
This page took 0.026444 seconds and 5 git commands to generate.