summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/advansys.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2007-08-05 17:31:24 +0200
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 20:38:28 +0200
commitea312552e94883efc42cfa4651bcf964f3110564 (patch)
treea12b5602abef524382c958fc14fd936cb66683cc /drivers/scsi/advansys.c
parent[SCSI] Fix async scanning double-add problems (diff)
downloadlinux-ea312552e94883efc42cfa4651bcf964f3110564.tar.xz
linux-ea312552e94883efc42cfa4651bcf964f3110564.zip
[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 <fujita.tomonori@lab.ntt.co.jp> Acked-by: Douglas Gilbert <dougg@torque.net> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions