projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
367b15b
)
fix-usb-disk-capacity.patch (applied cleanly)
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 12 Dec 2008 05:05:41 +0000
(21:05 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 12 Dec 2008 05:05:41 +0000
(21:05 -0800)
src/devices/usb_storage.c
patch
|
blob
|
history
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);
- 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? */