All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH] fix kmalloc() in aha1542.c
@ 2004-01-19  3:48 Timmy Yee
  2004-01-19 12:37 ` Daniele Bellucci
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Timmy Yee @ 2004-01-19  3:48 UTC (permalink / raw)
  To: kernel-janitors

Hi,

In drivers/scsi/aha1542.c, kmalloc() is called with no memtype (i.e.
without some flag like GFP_KERNEL). The following patch will fix that.

--- linux-2.6.1/drivers/scsi/aha1542.c	2003-08-09 18:19:18.000000000 -0700
+++ linux-2.6.1-mpi/drivers/scsi/aha1542.c	2004-01-18 19:20:38.000000000 -0800
@@ -704,7 +704,7 @@
 #endif
 		int i;
 		ccb[mbo].op = 2;	/* SCSI Initiator Command  w/scatter-gather */
-		SCpnt->host_scribble = (unsigned char *) kmalloc(512, GFP_DMA);
+		SCpnt->host_scribble = (unsigned char *) kmalloc(512, GFP_KERNEL | GFP_DMA);
 		sgpnt = (struct scatterlist *) SCpnt->request_buffer;
 		cptr = (struct chain *) SCpnt->host_scribble;
 		if (cptr = NULL)
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2004-01-20 23:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-19  3:48 [Kernel-janitors] [PATCH] fix kmalloc() in aha1542.c Timmy Yee
2004-01-19 12:37 ` Daniele Bellucci
2004-01-20 15:20 ` Timmy Yee
2004-01-20 15:33 ` Timmy Yee
2004-01-20 22:55 ` Randy.Dunlap
2004-01-20 23:07 ` Randy.Dunlap

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.