diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-12-09 00:08:08 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-01-26 02:09:22 +0300 |
commit | 9446f248d2f1006f0e5eafe5f828f6ab985f1808 (patch) | |
tree | 8f5a04cc4601ef13bdedefe5b91e4124b5cbd5d2 /drivers/nfc | |
parent | 1a94cb6025d49bb28fd3d639b59e296b19771069 (diff) | |
download | linux-9446f248d2f1006f0e5eafe5f828f6ab985f1808.tar.xz |
NFC: st21nfcb: Fix "WARNING: invalid free of devm_ allocated data"
ndlc pointer got allocated with devm_kzalloc in ndlc_probe function.
This gives this error message:
drivers/nfc/st21nfcb/ndlc.c:296:1-6: WARNING: invalid free of devm_ allocated data.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/st21nfcb/ndlc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nfc/st21nfcb/ndlc.c b/drivers/nfc/st21nfcb/ndlc.c index bac50e805f1d..ef0f997dae0a 100644 --- a/drivers/nfc/st21nfcb/ndlc.c +++ b/drivers/nfc/st21nfcb/ndlc.c @@ -297,6 +297,5 @@ void ndlc_remove(struct llt_ndlc *ndlc) skb_queue_purge(&ndlc->send_q); st21nfcb_nci_remove(ndlc->ndev); - kfree(ndlc); } EXPORT_SYMBOL(ndlc_remove); |