From: FUJITA Tomonori Date: Sun, 5 Aug 2007 15:31:24 +0000 (+0900) Subject: [SCSI] sg: increase sglist_len of the sg_scatter_hold structure X-Git-Tag: v2.6.24-rc1~1290^2~192 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea312552e94883efc42cfa4651bcf964f3110564;p=pandora-kernel.git [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 Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed