projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9876f0
)
[SCSI] gdth: don't map zero-length requests
author
Jenx Axboe
<axboe@suse.de>
Sun, 5 Feb 2006 15:36:23 +0000
(16:36 +0100)
committer
<jejb@mulgrave.il.steeleye.com>
<>
Sun, 5 Feb 2006 18:59:29 +0000
(12:59 -0600)
Don't map zero-length requests in gdth, zome architectures don't like
that in their dma mapping routines.
[ I'm pretty sure Jens posted this before, but for some reason it got
forgotten --hch ]
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/gdth.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/gdth.c
b/drivers/scsi/gdth.c
index bd3ffdf6c800088d5e6de6b915a6727eaa912757..62e3cda859afccb44dda94dc9c2a6d2ab0a18d31 100644
(file)
--- a/
drivers/scsi/gdth.c
+++ b/
drivers/scsi/gdth.c
@@
-2816,7
+2816,7
@@
static int gdth_fill_cache_cmd(int hanum,Scsi_Cmnd *scp,ushort hdrive)
}
#endif
- } else {
+ } else
if (scp->request_bufflen)
{
scp->SCp.Status = GDTH_MAP_SINGLE;
scp->SCp.Message = (read_write == 1 ?
PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE);