commit | ea312552e94883efc42cfa4651bcf964f3110564 | [log] [tgz] |
---|---|---|
author | FUJITA Tomonori <[email protected]> | Mon Aug 06 00:31:24 2007 +0900 |
committer | James Bottomley <[email protected]> | Fri Oct 12 14:38:28 2007 -0400 |
tree | a12b5602abef524382c958fc14fd936cb66683cc | |
parent | 6b7f123f378743d739377871c0cbfbaf28c7d25a [diff] |
[SCSI] sg: increase sglist_len of the sg_scatter_hold structure unsigned short is too small for sizeof(struct scatterlist) * min(q->max_hw_segments, q->max_phys_segments). This fixes memory leak with 4096 segments since 16 (likely sg size with x86) * 4096 sets sglist_len to zero. This might not happen without sg chaining support. Signed-off-by: FUJITA Tomonori <[email protected]> Acked-by: Douglas Gilbert <[email protected]> Signed-off-by: James Bottomley <[email protected]>