Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351906
b: refs/heads/master
c: 924d4a0
h: refs/heads/master
v: v3
  • Loading branch information
Eric Lapuyade authored and Samuel Ortiz committed Jan 9, 2013
1 parent 3d4b469 commit dd0d2e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40d06d3647ea872a7346be1f6859f18cd0fe08d3
refs/heads/master: 924d4a023ee6da2e40c78578829e68bcbabee2dd
10 changes: 8 additions & 2 deletions trunk/drivers/nfc/pn544/pn544.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,17 @@ static int pn544_hci_im_transceive(struct nfc_hci_dev *hdev,

static int pn544_hci_tm_send(struct nfc_hci_dev *hdev, struct sk_buff *skb)
{
int r;

/* Set default false for multiple information chaining */
*skb_push(skb, 1) = 0;

return nfc_hci_send_event(hdev, PN544_RF_READER_NFCIP1_TARGET_GATE,
PN544_HCI_EVT_SND_DATA, skb->data, skb->len);
r = nfc_hci_send_event(hdev, PN544_RF_READER_NFCIP1_TARGET_GATE,
PN544_HCI_EVT_SND_DATA, skb->data, skb->len);

kfree_skb(skb);

return r;
}

static int pn544_hci_check_presence(struct nfc_hci_dev *hdev,
Expand Down
6 changes: 4 additions & 2 deletions trunk/net/nfc/hci/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,10 @@ static int hci_tm_send(struct nfc_dev *nfc_dev, struct sk_buff *skb)

if (hdev->ops->tm_send)
return hdev->ops->tm_send(hdev, skb);
else
return -ENOTSUPP;

kfree_skb(skb);

return -ENOTSUPP;
}

static int hci_check_presence(struct nfc_dev *nfc_dev,
Expand Down

0 comments on commit dd0d2e2

Please sign in to comment.