]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: card: Don't show eMMC RPMB and BOOT areas in /proc/partitions
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Tue, 27 Feb 2018 11:33:49 +0000 (17:03 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:36 +0000 (15:08 +0200)
commitddda43e5012450309c8fffe28d5c36bcc9fa40db
tree1b3f28b58de093c553bb93189862b6f7441ecee9
parente4311d8784aa9f82305593a2483178038faa5ae5
mmc: card: Don't show eMMC RPMB and BOOT areas in /proc/partitions

Since RPMB area is accessible via special ioctl only and boot areas
are unlikely to contain any partitions, exclude them all from listing
in /proc/partitions. This will hide them from various user-level
software (e.g. fdisk), thus avoiding unnecessary access attempts.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c