summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
authorAl Viro <viro@www.linux.org.uk>2005-04-24 21:28:34 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-24 21:28:34 +0200
commitbc86120a85ebf553180946e8854d1993f074e9f5 (patch)
treed2d84a28a50328d8d910176b4031482ee308bc55 /drivers/scsi/scsi_error.c
parent[IA64] Fix build errors for !HOTPLUG case. (diff)
downloadlinux-bc86120a85ebf553180946e8854d1993f074e9f5.tar.xz
linux-bc86120a85ebf553180946e8854d1993f074e9f5.zip
[PATCH] SCSI GFP fixes
Somebody forgot that | has higher priority than ?:. As the result, allocation is done with bogus flags - instead of GFP_ATOMIC + possibly GFP_DMA we always get GFP_DMA and no GFP_ATOMIC. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 1a135f38e78d..2bf1ee2b47b6 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -584,7 +584,7 @@ static int scsi_request_sense(struct scsi_cmnd *scmd)
memcpy(scmd->cmnd, generic_sense, sizeof(generic_sense));
- scsi_result = kmalloc(252, GFP_ATOMIC | (scmd->device->host->hostt->unchecked_isa_dma) ? __GFP_DMA : 0);
+ scsi_result = kmalloc(252, GFP_ATOMIC | ((scmd->device->host->hostt->unchecked_isa_dma) ? __GFP_DMA : 0));
if (unlikely(!scsi_result)) {