|
@@ -1411,7 +1411,7 @@ static void cciss_scatter_gather(ctlr_info_t *h, CommandList_struct *c,
|
|
|
/* track how many SG entries we are using */
|
|
/* track how many SG entries we are using */
|
|
|
if (request_nsgs > h->maxSG)
|
|
if (request_nsgs > h->maxSG)
|
|
|
h->maxSG = request_nsgs;
|
|
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)
|
|
if (request_nsgs > h->max_cmd_sgentries)
|
|
|
c->Header.SGList = h->max_cmd_sgentries;
|
|
c->Header.SGList = h->max_cmd_sgentries;
|
|
|
else
|
|
else
|