projects
/
linux-flexiantxendom0.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cciss: Fix scsi tape io with more than 255 scatter gather elements
[linux-flexiantxendom0.git]
/
drivers
/
block
/
cciss_scsi.c
diff --git
a/drivers/block/cciss_scsi.c
b/drivers/block/cciss_scsi.c
index
f510a9c
..
acda773
100644
(file)
--- a/
drivers/block/cciss_scsi.c
+++ b/
drivers/block/cciss_scsi.c
@@
-1411,7
+1411,7
@@
static void cciss_scatter_gather(ctlr_info_t *h, CommandList_struct *c,
/* track how many SG entries we are using */
if (request_nsgs > h->maxSG)
h->maxSG = request_nsgs;
/* track how many SG entries we are using */
if (request_nsgs > h->maxSG)
h->maxSG = request_nsgs;
- c->Header.SGTotal = (__u8) request_nsgs + chained;
+ c->Header.SGTotal = (u16) request_nsgs + chained;
if (request_nsgs > h->max_cmd_sgentries)
c->Header.SGList = h->max_cmd_sgentries;
else
if (request_nsgs > h->max_cmd_sgentries)
c->Header.SGList = h->max_cmd_sgentries;
else