public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.6.6 invalid usage of GFP_DMA in drivers/scsi/pluto.c
@ 2004-06-08 10:11 Yury Umanets
  2004-06-08 10:17 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Yury Umanets @ 2004-06-08 10:11 UTC (permalink / raw)
  To: akpm; +Cc: jj, linux-kernel

Hello Andrew, guys,

Found this, what seems to be an invalid usage of GFP_DMA flag. Is this
patch okay?

Thanks.

 ./linux-2.6.6-modified/drivers/scsi/pluto.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

Signed-off-by: Yury Umanets <torque@ukrpost.net>

--- ./linux-2.6.6/drivers/scsi/pluto.c	Mon May 10 05:32:27 2004
+++ ./linux-2.6.6-modified/drivers/scsi/pluto.c	Tue Jun  8 11:26:07 2004
@@ -117,7 +117,8 @@ int __init pluto_detect(Scsi_Host_Templa
 #endif
 			return 0;
 	}
-	fcs = (struct ctrl_inquiry *) kmalloc (sizeof (struct ctrl_inquiry) *
fcscount, GFP_DMA);
+	fcs = (struct ctrl_inquiry *) kmalloc (sizeof (struct ctrl_inquiry) *
fcscount, 
+			GFP_KERNEL | GFP_DMA);
 	if (!fcs) {
 		printk ("PLUTO: Not enough memory to probe\n");
 		return 0;

-- 
umka


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-08 11:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 10:11 [PATCH] 2.6.6 invalid usage of GFP_DMA in drivers/scsi/pluto.c Yury Umanets
2004-06-08 10:17 ` Andrew Morton
2004-06-08 11:07   ` Yury Umanets

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox