* [PATCH] U14-34F: fix scsi_dma_map failure case
@ 2008-10-21 5:08 roel kluin
0 siblings, 0 replies; only message in thread
From: roel kluin @ 2008-10-21 5:08 UTC (permalink / raw)
To: ballabio_dario, linux-scsi, linux-kernel
When unsigned, scsi_dma_map may return -ENOMEM without triggering BUG_ON()
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/scsi/u14-34f.c b/drivers/scsi/u14-34f.c
index 329eb87..601e951 100644
--- a/drivers/scsi/u14-34f.c
+++ b/drivers/scsi/u14-34f.c
@@ -1111,7 +1111,8 @@ static int u14_34f_detect(struct scsi_host_template *tpnt) {
static 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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-21 5:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 5:08 [PATCH] U14-34F: fix scsi_dma_map failure case roel kluin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.