aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2018-10-17 16:32:02 +0900
committerAlexander Graf <agraf@suse.de>2018-12-02 21:59:36 +0100
commitb0c78d8ffc9fe8b0388353d72e9f2b9e9c6107c6 (patch)
tree0086aa9e58bc75687e99cbeb88e6792667bc3395 /fs
parenta33a4efd2785dfda23216bc97e7b636cfd29b9f8 (diff)
downloadu-boot-b0c78d8ffc9fe8b0388353d72e9f2b9e9c6107c6.zip
u-boot-b0c78d8ffc9fe8b0388353d72e9f2b9e9c6107c6.tar.gz
u-boot-b0c78d8ffc9fe8b0388353d72e9f2b9e9c6107c6.tar.bz2
fs: update fs_dev_part in fs_set_blk_dev_with_part()
As in the case of fs_set_blk_dev(), fs_set_blk_dev_with_part() should maintain and update fs_dev_part whenever called. Without this patch, a problem will come up when an efi binary associated with efi's BOOTxxxx variable is invoked via "bootefi bootmgr". Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fs.c b/fs/fs.c
index adae98d..cb26517 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -365,6 +365,7 @@ int fs_set_blk_dev_with_part(struct blk_desc *desc, int part)
for (i = 0, info = fstypes; i < ARRAY_SIZE(fstypes); i++, info++) {
if (!info->probe(fs_dev_desc, &fs_partition)) {
fs_type = info->fstype;
+ fs_dev_part = part;
return 0;
}
}