projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix-usb-disk-capacity.patch (applied cleanly)
[pintos-anon]
/
src
/
devices
/
usb_storage.c
diff --git
a/src/devices/usb_storage.c
b/src/devices/usb_storage.c
index a5e3ad1272099cbee47d8e54ed5113ceb1dc990b..25114393ab29109fe2d24bbe7937de62013103cd 100644
(file)
--- a/
src/devices/usb_storage.c
+++ b/
src/devices/usb_storage.c
@@
-309,7
+309,7
@@
msc_get_geometry (struct msc_class_info *mci)
usb_dev_bulk (mci->eop_out, &cbw, sizeof (cbw), &tx);
usb_dev_bulk (mci->eop_in, &buf, sizeof (buf), &tx);
usb_dev_bulk (mci->eop_out, &cbw, sizeof (cbw), &tx);
usb_dev_bulk (mci->eop_in, &buf, sizeof (buf), &tx);
- mci->blk_count = be32_to_machine (cap->blocks);
+ mci->blk_count = be32_to_machine (cap->blocks)
+ 1
;
mci->blk_size = be32_to_machine (cap->block_len);
/* did CSW stall? */
mci->blk_size = be32_to_machine (cap->block_len);
/* did CSW stall? */