U14-34F: fix scsi_dma_map failure case
PATCH 15/17 U14-34F: fix scsi_dma_map failure case
From: roel kluin <[email protected]>
When unsigned, scsi_dma_map may return -ENOMEM without triggering BUG_ON()
Signed-off-by Roel Kluin <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/u14-34f.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/u14-34f.c renamed from drivers/scsi/u14-34f.c~u14-34f-fix-scsi_dma_map-failure-case +2 -1
@@ -1111,7 +1111,8 @@ static int u14_34f_detect(struct scsi_hostatic void map_dma (unsigned int i,unsigned int j) {unsigned int data_len =0 ; -unsigned int k, count, pci_dir; +unsigned int k, pci_dir; +int count;struct scatterlist *sg;struct mscp *cpp;struct scsi_cmnd *SCpnt;
_