NFC: pn533: Frame is invalid if ccid.datalen is 0
authorSamuel Ortiz <sameo@linux.intel.com>
Sat, 4 Jan 2014 02:23:35 +0000 (03:23 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 4 Jan 2014 02:32:27 +0000 (03:32 +0100)
Some ACR122 firmwares seem to send 0 length data frames. Before using
that length as a data index, we check that it's not 0. If it is we
report the frame as being invalid.

Reported-by: Arthur Taylor <arthur@advancedtelematic.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

No differences found