linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.5] ES968: kmalloc params fix
@ 2003-03-31 17:39 Pablo Menichini
  2003-04-10  3:15 ` [PATCH 2.5] SB16: fix kmalloc params Pablo Menichini
  0 siblings, 1 reply; 2+ messages in thread
From: Pablo Menichini @ 2003-03-31 17:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: Adam Belay, Jaroslav Kysela

This patch swaps the arguments of kmalloc, and relax the type
of allocation to GFP_KERNEL as others PnP functions do.

Pablo


--- sound/isa/sb/es968.c.orig	Sun Mar 30 14:30:08 2003
+++ sound/isa/sb/es968.c	Sun Mar 30 14:32:16 2003
@@ -95,7 +95,7 @@
 					const struct pnp_card_id *id)
 {
 	struct pnp_dev *pdev;
-	struct pnp_resource_table * cfg = kmalloc(GFP_ATOMIC, sizeof(struct pnp_resource_table));
+	struct pnp_resource_table *cfg = kmalloc(sizeof(*cfg), GFP_KERNEL);
 	int err;
 	if (!cfg)
 		return -ENOMEM;






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

* [PATCH 2.5] SB16: fix kmalloc params
  2003-03-31 17:39 [PATCH 2.5] ES968: kmalloc params fix Pablo Menichini
@ 2003-04-10  3:15 ` Pablo Menichini
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Menichini @ 2003-04-10  3:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: Adam Belay, Jaroslav Kysela

This patch swaps the arguments of kmalloc, and relax the type
of allocation to GFP_KERNEL as others PnP functions do.

Pablo

--- linux-2.5.67/sound/isa/sb/sb16.c	Tue Apr  8 15:24:31 2003
+++ linux-local/sound/isa/sb/sb16.c	Tue Apr  8 15:24:52 2003
@@ -261,7 +261,7 @@
 				       const struct pnp_card_device_id *id)
 {
 	struct pnp_dev *pdev;
-	struct pnp_resource_table * cfg = kmalloc(GFP_ATOMIC, sizeof(struct pnp_resource_table));
+	struct pnp_resource_table *cfg = kmalloc(sizeof(*cfg), GFP_KERNEL);
 	int err;

 	if (!cfg)




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

end of thread, other threads:[~2003-04-10  3:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-31 17:39 [PATCH 2.5] ES968: kmalloc params fix Pablo Menichini
2003-04-10  3:15 ` [PATCH 2.5] SB16: fix kmalloc params Pablo Menichini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).