From 1640744ef181064ac71a84dace3e4aff4ef8011f Mon Sep 17 00:00:00 2001 From: Adam Belay Date: Thu, 3 Apr 2003 23:27:53 +0000 Subject: [PATCH] [PATCH 2.5] ALS100: kmalloc params fix Date: Mon, 31 Mar 2003 14:39:54 -0300 (ART) From: Pablo Menichini This patch swaps the arguments of kmalloc, and relax the type of allocation to GFP_KERNEL as others PnP functions do. Pablo --- sound/isa/als100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/isa/als100.c b/sound/isa/als100.c index fc0a96cee7c32..c17661774af31 100644 --- a/sound/isa/als100.c +++ b/sound/isa/als100.c @@ -121,7 +121,7 @@ static int __devinit snd_card_als100_isapnp(int dev, struct snd_card_als100 *aca 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) return -ENOMEM; -- 2.53.0