[SCSI] cxgb3i: fix ddp map overrun
authorkxie@chelsio.com <kxie@chelsio.com>
Tue, 21 Apr 2009 20:32:35 +0000 (15:32 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 27 Apr 2009 15:11:07 +0000 (10:11 -0500)
commita53922ddcf69f4bd8aa321b1fb30418df7a86c61
treebbb64365c591b680ec0639a0c18ce4e3bbc4676c
parent1393109f23f8ad753a60a3e461c6caa96d8524f3
[SCSI] cxgb3i: fix ddp map overrun

(version 2)

Fixed a bug in calculating ddp map range when search for free entries:
it was going beyond the end by one, thus corrupting gl_skb[0].

Signed-off-by: Karen Xie <kxie@chelsio.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/cxgb3i/cxgb3i_ddp.c