Commit 1640744e authored by Adam Belay's avatar Adam Belay

[PATCH 2.5] ALS100: kmalloc params fix

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
parent 701fa1ec
...@@ -121,7 +121,7 @@ static int __devinit snd_card_als100_isapnp(int dev, struct snd_card_als100 *aca ...@@ -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) const struct pnp_card_device_id *id)
{ {
struct pnp_dev *pdev; 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; int err;
if (!cfg) if (!cfg)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment