diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-12-14 16:43:06 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-14 14:50:12 -0500 |
commit | 7c7cd3bfec68fee33b30d177df6a6a0c4bbdc59d (patch) | |
tree | 7b7332d63303d30c73b4ecd8a300e84d801baa33 /drivers/nfc | |
parent | 52858b51b2c779a8f9db32accf774b165522ad81 (diff) | |
download | op-kernel-dev-7c7cd3bfec68fee33b30d177df6a6a0c4bbdc59d.zip op-kernel-dev-7c7cd3bfec68fee33b30d177df6a6a0c4bbdc59d.tar.gz |
NFC: Add tx skb allocation routine
This is a factorization of the current rawsock tx skb allocation routine,
as it will be used by the LLCP code.
We also rename nfc_alloc_skb to nfc_alloc_recv_skb for consistency sake.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/pn533.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index dbf214e..ea1caae 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c @@ -1368,7 +1368,7 @@ static int pn533_data_exchange(struct nfc_dev *nfc_dev, u32 target_idx, PN533_CMD_DATAEXCH_DATA_MAXLEN + PN533_FRAME_TAIL_SIZE; - skb_resp = nfc_alloc_skb(skb_resp_len, GFP_KERNEL); + skb_resp = nfc_alloc_recv_skb(skb_resp_len, GFP_KERNEL); if (!skb_resp) { rc = -ENOMEM; goto error; |