Skip to content

Commit

Permalink
solos-pci: use GFP_KERNEL where possible, not GFP_ATOMIC
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Dec 2, 2012
1 parent 213e85d commit a1db5c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/atm/solos-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ static int popen(struct atm_vcc *vcc)
return -EINVAL;
}

skb = alloc_skb(sizeof(*header), GFP_ATOMIC);
skb = alloc_skb(sizeof(*header), GFP_KERNEL);
if (!skb) {
if (net_ratelimit())
dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n");
Expand Down Expand Up @@ -881,7 +881,7 @@ static void pclose(struct atm_vcc *vcc)
}
spin_unlock(&card->tx_queue_lock);

skb = alloc_skb(sizeof(*header), GFP_ATOMIC);
skb = alloc_skb(sizeof(*header), GFP_KERNEL);
if (!skb) {
dev_warn(&card->dev->dev, "Failed to allocate sk_buff in pclose()\n");
return;
Expand Down Expand Up @@ -1268,7 +1268,7 @@ static int atm_init(struct solos_card *card, struct device *parent)
card->atmdev[i]->phy_data = (void *)(unsigned long)i;
atm_dev_signal_change(card->atmdev[i], ATM_PHY_SIG_FOUND);

skb = alloc_skb(sizeof(*header), GFP_ATOMIC);
skb = alloc_skb(sizeof(*header), GFP_KERNEL);
if (!skb) {
dev_warn(&card->dev->dev, "Failed to allocate sk_buff in atm_init()\n");
continue;
Expand Down

0 comments on commit a1db5c5

Please sign in to comment.