aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2018-05-16 15:32:47 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2018-06-04 07:34:54 +0200
commitc99f996b2ba49572d228075a5517455b8ecf6585 (patch)
tree5032beab500b36ff2f3df2d76af402f109f64107
parent85ef4f34cc64ecd13099817bbcab0b46564f7413 (diff)
downloadnfc-next-c99f996b2ba49572d228075a5517455b8ecf6585.tar.gz
NFC: st95hf: drop illegal kfree_skb()
The skb that is passed in to ->in_send_cmd() is freed by the core when the function returns. Calling kfree_skb() on it from the driver callback will hence lead to a double-free. Signed-off-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/nfc/st95hf/core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c
index 394bdc7b0cf27..a50a95cfcfd8e 100644
--- a/drivers/nfc/st95hf/core.c
+++ b/drivers/nfc/st95hf/core.c
@@ -995,8 +995,6 @@ static int st95hf_in_send_cmd(struct nfc_digital_dev *ddev,
goto free_skb_resp;
}
- kfree_skb(skb);
-
return rc;
free_skb_resp: