]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: st-nci: Free data with irrelevant NDLC PCB_SYNC value
authorChristophe Ricard <christophe.ricard@gmail.com>
Fri, 14 Aug 2015 20:33:36 +0000 (22:33 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 16 Aug 2015 22:35:08 +0000 (00:35 +0200)
commitf5713282dd44f6ae58a37a2c90fb4c7792694102
tree8ec79e9d5dcb5427ff0e16e1a38d823b65a99151
parent2ac6ef3cd359ceeb4344e1b3f4a88960d25880e9
nfc: st-nci: Free data with irrelevant NDLC PCB_SYNC value

PCB_SYNC different than PCB_TYPE_SUPERVISOR or PCB_TYPE_DATAFRAME
should be discarded.

Irrelevant data may be forwarded up to the ndlc state machine by
phys like spi to prevent missing potential data during "write"
transactions.

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st-nci/ndlc.c