]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: st21nfcb: Fix "WARNING: invalid free of devm_ allocated data"
authorChristophe Ricard <christophe.ricard@gmail.com>
Mon, 8 Dec 2014 21:08:08 +0000 (22:08 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 25 Jan 2015 23:09:22 +0000 (00:09 +0100)
commit90feab1e4153df7744889f0273b0d15dbfda5e77
tree8f5a04cc4601ef13bdedefe5b91e4124b5cbd5d2
parentca3d5389c182a4a7c79483d089413ea3cc8e4e5a
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>
drivers/nfc/st21nfcb/ndlc.c