NFC: st21nfca: Free buffer when a bad frame is detected
authorChristophe Ricard <christophe.ricard@gmail.com>
Thu, 24 Apr 2014 21:19:35 +0000 (23:19 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 4 May 2014 23:04:10 +0000 (01:04 +0200)
commit0c942b007b52cdcde285fa1122688f186bf99464
treeefa7a8beebc1a60c5605ab2452cb80159677fdf6
parenta3c5d8fb7ffa8850f3d2fc01e1dde0709a3954f9
NFC: st21nfca: Free buffer when a bad frame is detected

When a bad frame is detected for a bad crc.
We were reallocating and loosing the previous frame pointer.

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