diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-09-03 23:30:26 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-09-08 00:29:50 +0200 |
commit | ac633ba6acb94a11b09a7ec417c72f65c6308b7a (patch) | |
tree | f1406c1dac972c3911d7f5666155c8332b7b6928 /lib | |
parent | NFC: st21nfca: Add condition to make sure atr_req->length is valid. (diff) | |
download | linux-ac633ba6acb94a11b09a7ec417c72f65c6308b7a.tar.xz linux-ac633ba6acb94a11b09a7ec417c72f65c6308b7a.zip |
NFC: st21nfcb: Fix logic when running into i2c read retry
When retrying to read the NCI header, the CLF might not be
available the first time. However it may not be successful
the second time and this may cause an error in the function.
Enforce the retrieve data length is as expected.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions