]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: st21nfca: Fix recursive fault when doing p2p in target mode.
authorChristophe Ricard <christophe.ricard@gmail.com>
Sat, 13 Sep 2014 08:28:45 +0000 (10:28 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 24 Sep 2014 00:02:23 +0000 (02:02 +0200)
commitbec66093ba1d6bfd3bec51e65067b0168eeafc54
tree5d80c4bc910a44f0e5faa50354c41b012f53c4af
parentd2557d55ff26a84adaf87205848c05be879d83be
NFC: st21nfca: Fix recursive fault when doing p2p in target mode.

This patch fix a previous patch introduce by commit 4c27026d4d959aecef893cb436571820216265a7

It is actually fixing a double free mistake in all st21nfca_tm_* function.
We decide to return directly in case of successful execution because skb
got already freed. In st21nfca_tm_recv_dep_req it got freed by nfc_tm_data_received.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/st21nfca.c