/* Allocate skb with enough space for the lower layers as well
* as the space we need.
*/
- skb = alloc_skb(f->total_size + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC);
+ skb = dev_alloc_skb(f->total_size + OZ_ALLOCATED_SPACE(dev));
if (skb == NULL)
return NULL;
/* Reserve the head room for lower layers.
pd->max_tx_size, &list);
if (list.next == &list)
return 0;
- skb = alloc_skb(total_size + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC);
+ skb = dev_alloc_skb(total_size + OZ_ALLOCATED_SPACE(dev));
if (skb == NULL) {
oz_trace("Cannot alloc skb\n");
oz_elt_info_free_chain(&pd->elt_buff, &list);
return 0;
if (!skb) {
/* Allocate enough space for max size frame. */
- skb = alloc_skb(pd->max_tx_size + OZ_ALLOCATED_SPACE(dev),
- GFP_ATOMIC);
+ skb = dev_alloc_skb(pd->max_tx_size + OZ_ALLOCATED_SPACE(dev));
if (skb == NULL)
return 0;
/* Reserve the head room for lower layers. */