diff options
author | Xenia Ragiadakou <burzalodowa@gmail.com> | 2013-05-21 13:18:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 10:54:45 -0700 |
commit | edea341b0477ce5d53f7341f8b8cf8c91ad54ecf (patch) | |
tree | 8d7aabfa2fd4482e23b04ec732ae158475369f06 /drivers/staging/ozwpan/ozproto.c | |
parent | b59983f525396a47cf8b28c13bbd5d5ff57859b8 (diff) | |
download | op-kernel-dev-edea341b0477ce5d53f7341f8b8cf8c91ad54ecf.zip op-kernel-dev-edea341b0477ce5d53f7341f8b8cf8c91ad54ecf.tar.gz |
ozwpan: replace alloc_skb with dev_alloc_skb in ozproto.c
This patch replaces the calls to alloc_skb with calls
to dev_alloc_skb.
dev_alloc_skb has GFP_ATOMIC priority so the
replacement does not change the code semantics.
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozproto.c')
-rw-r--r-- | drivers/staging/ozwpan/ozproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index 3badf15..83bbd4b 100644 --- a/drivers/staging/ozwpan/ozproto.c +++ b/drivers/staging/ozwpan/ozproto.c @@ -97,7 +97,7 @@ static void oz_send_conn_rsp(struct oz_pd *pd, u8 status) struct oz_elt_connect_rsp *body; int sz = sizeof(struct oz_hdr) + sizeof(struct oz_elt) + sizeof(struct oz_elt_connect_rsp); - skb = alloc_skb(sz + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC); + skb = dev_alloc_skb(sz + OZ_ALLOCATED_SPACE(dev)); if (skb == NULL) return; skb_reserve(skb, LL_RESERVED_SPACE(dev)); |