]> git.hungrycats.org Git - linux/commitdiff
[PATCH 2.5] ES968: kmalloc params fix
authorAdam Belay <ambx1@neo.rr.com>
Thu, 3 Apr 2003 23:31:47 +0000 (23:31 +0000)
committerAdam Belay <ambx1@neo.rr.com>
Thu, 3 Apr 2003 23:31:47 +0000 (23:31 +0000)
Date: Mon, 31 Mar 2003 14:39:54 -0300 (ART)
From: Pablo Menichini <pablo@menichini.com.ar>

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

index 9f71c31eaf086e31e8ee33f8a0c15264e6bba2af..7e508b8b3e6cff8451a9e809808373d70fca0525 100644 (file)
@@ -95,7 +95,7 @@ static int __devinit snd_card_es968_isapnp(int dev, struct snd_card_es968 *acard
                                        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;