Commit e315468f authored by Adam Belay's avatar Adam Belay

[PATCH 2.5] ES968: 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 1640744e
...@@ -95,7 +95,7 @@ static int __devinit snd_card_es968_isapnp(int dev, struct snd_card_es968 *acard ...@@ -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) 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