diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2011-07-15 19:50:26 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:58:59 -0700 |
commit | c4675722c32de5bf58bf2e77bf4ba91ccc8b3788 (patch) | |
tree | 4f9bfc5afbadb504b455c11e8dc74c7336ad2766 /lib | |
parent | 3d3cc33366ecf081776f5580106b06da80a7c149 (diff) |
fix disk info for USB mass storage device
We need to read the parameters from the actual USB device structure not
from the last MMC device read ...
BUG=chromium-os:17650
TEST=Boot with Ctrl+U and check that the sector size and the number of
sectors correspond to the USB key
Change-Id: I6ff5e0507372f2fdd5c1778d589894adbaef6187
Reviewed-on: http://gerrit.chromium.org/gerrit/4230
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vbexport/boot_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vbexport/boot_device.c b/lib/vbexport/boot_device.c index 699f505e76..bb159e87dc 100644 --- a/lib/vbexport/boot_device.c +++ b/lib/vbexport/boot_device.c @@ -136,7 +136,7 @@ VbError_t VbExDiskGetInfo(VbDiskInfo** infos_ptr, uint32_t* count, if (!(flags & disk_flags)) continue; - if (add_disk_info(&m->block_dev, infos, count)) { + if (add_disk_info(d, infos, count)) { /* * If too many storage devices registered, * returns as many disk infos as we could |