mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
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>
This commit is contained in:
parent
1a94cb6025
commit
9446f248d2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user