]> git.karo-electronics.de Git - linux-beck.git/commit
phonet: Replace calls to __skb_alloc_page with __dev_alloc_page
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Tue, 11 Nov 2014 17:26:50 +0000 (09:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 05:00:14 +0000 (00:00 -0500)
commit5693d284dd718313ca2f63a189193d4189889183
treeeec972bda93ada1fc3c194f6fc4849b9dc7bbe09
parentaa9cd31c3f3ee36dc459b6070bacc581c1bfc334
phonet: Replace calls to __skb_alloc_page with __dev_alloc_page

Replace the calls to __skb_alloc_page that are passed NULL with calls to
__dev_alloc_page.

In addition remove __GFP_COLD flag from allocations as we only want it for
the Rx buffer which is taken care of by __dev_alloc_skb, not for any
secondary allocations such as the queue element transmit descriptors.

Cc: Oliver Neukum <oliver@neukum.org>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc-phonet.c
drivers/usb/gadget/function/f_phonet.c