mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
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>
This commit is contained in:
parent
a33a4efd27
commit
b0c78d8ffc
1
fs/fs.c
1
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++) {
|
for (i = 0, info = fstypes; i < ARRAY_SIZE(fstypes); i++, info++) {
|
||||||
if (!info->probe(fs_dev_desc, &fs_partition)) {
|
if (!info->probe(fs_dev_desc, &fs_partition)) {
|
||||||
fs_type = info->fstype;
|
fs_type = info->fstype;
|
||||||
|
fs_dev_part = part;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user