]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: st-nci: Fix incorrect spi buffer size
authorChristophe Ricard <christophe.ricard@gmail.com>
Sun, 25 Oct 2015 21:54:19 +0000 (22:54 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Oct 2015 05:53:06 +0000 (06:53 +0100)
commitf6c457359b6579e4a8eb8f7bc2e6fb6a6c12574c
tree656eefa06de222440aa69f705d4314bc432a0eba
parent1cc024259d5c78383c3cc1260ce3a95c988f576b
NFC: st-nci: Fix incorrect spi buffer size

When sending data over SPI, the maximum expected length is the maximum
nci packet payload + data header size + the frame head room (1 for the
ndlc header) + the frame trail room (0).

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/spi.c