git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
drivers
/
usb
/
storage
/
jumpshot.c
diff --git
a/drivers/usb/storage/jumpshot.c
b/drivers/usb/storage/jumpshot.c
index
39b24e5
..
ac9c908
100644
(file)
--- a/
drivers/usb/storage/jumpshot.c
+++ b/
drivers/usb/storage/jumpshot.c
@@
-471,7
+471,7
@@
int jumpshot_transport(Scsi_Cmnd * srb, struct us_data *us)
// build the reply
//
- ((u32 *) ptr)[0] = cpu_to_be32(info->sectors);
+ ((u32 *) ptr)[0] = cpu_to_be32(info->sectors
- 1
);
((u32 *) ptr)[1] = cpu_to_be32(info->ssize);
usb_stor_set_xfer_buf(ptr, 8, srb);