diff options
author | Eric Lapuyade <eric.lapuyade@linux.intel.com> | 2012-12-04 16:44:25 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-01-10 00:51:50 +0100 |
commit | 924d4a023ee6da2e40c78578829e68bcbabee2dd (patch) | |
tree | ae6bfa8b03c8b6db301ffaae562f5e398e786021 /net/nfc/hci | |
parent | 40d06d3647ea872a7346be1f6859f18cd0fe08d3 (diff) | |
download | linux-924d4a023ee6da2e40c78578829e68bcbabee2dd.tar.bz2 |
NFC: Fixed skb leak in tm_send() nfc and hci ops implementations
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/hci')
-rw-r--r-- | net/nfc/hci/core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c index 0430f3086e41..d9190da4a403 100644 --- a/net/nfc/hci/core.c +++ b/net/nfc/hci/core.c @@ -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, |