summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorBastian Stender <bst@pengutronix.de>2018-03-08 15:08:11 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2018-03-15 10:31:38 +0100
commite74ef2194b41ba5e511fab29fe5ff00e72d2f42a (patch)
tree0c945ecaa62561f2ebe83735221c5bc2100cc0e8 /drivers/regulator
parentc7151602255a36ba07c84fe2baeef846fdb988b8 (diff)
downloadlinux-e74ef2194b41ba5e511fab29fe5ff00e72d2f42a.tar.bz2
mmc: block: fix updating ext_csd caches on ioctl call
PARTITION_CONFIG is cached in mmc_card->ext_csd.part_config and the currently active partition in mmc_blk_data->part_curr. These caches do not always reflect changes if the ioctl call modifies the PARTITION_CONFIG registers, e.g. by changing BOOT_PARTITION_ENABLE. Write the PARTITION_CONFIG value extracted from the ioctl call to the cache and update the currently active partition accordingly. This ensures that the user space cannot change the values behind the kernel's back. The next call to mmc_blk_part_switch() will operate on the data set by the ioctl and reflect the changes appropriately. Signed-off-by: Bastian Stender <bst@pengutronix.de> Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions