From: Julien Lefrique Date: Tue, 2 Dec 2014 15:25:01 +0000 (+0100) Subject: NFC: NCI: Fix max length of General Bytes in ATR_RES X-Git-Tag: omap-for-v3.20/drop-legacy-3517~122^2~28^2~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e479ce479743984a5d4581749f9aaa9c3bfd65e4;p=pandora-kernel.git NFC: NCI: Fix max length of General Bytes in ATR_RES The maximum size of ATR_REQ and ATR_RES is 64 bytes. The maximum number of General Bytes is calculated by the maximum number of data bytes in the ATR_REQ/ATR_RES, substracted by the number of mandatory data bytes. ATR_REQ: 16 mandatory data bytes, giving a maximum of 48 General Bytes. ATR_RES: 17 mandatory data bytes, giving a maximum of 47 General Bytes. Regression introduced in commit a99903ec. Signed-off-by: Julien Lefrique Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed