aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2010-03-09 11:09:50 +0900
committerJames Bottomley <James.Bottomley@suse.de>2010-04-11 09:23:26 -0500
commitbb789d01620e5d36081b22edb6fb71cf55ff043c (patch)
tree1ca2bbbb878557edb209d87da6d90429faf38257 /lib/debugobjects.c
parentc4de0cebc512148bee764bfdac7bf49555e41173 (diff)
downloadkernel_samsung_aries-bb789d01620e5d36081b22edb6fb71cf55ff043c.zip
kernel_samsung_aries-bb789d01620e5d36081b22edb6fb71cf55ff043c.tar.gz
kernel_samsung_aries-bb789d01620e5d36081b22edb6fb71cf55ff043c.tar.bz2
[SCSI] mpt2sas: fix the incorrect scsi_dma_map error checking
scsi_dma_map() returns -1 if an error occurred (zero means that the command has no data). So the following current code can't catch an error: sges_left = scsi_dma_map(scmd); if (!sges_left) { sdev_printk(KERN_ERR, scmd->device, "pci_map_sg" " failed: request for %d bytes!\n", scsi_bufflen(scmd)); return -ENOMEM; } Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: "Desai, Kashyap" <Kashyap.Desai@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions