diff options
| author | Christophe Ricard <[email protected]> | 2015-03-31 08:02:16 +0200 |
|---|---|---|
| committer | Samuel Ortiz <[email protected]> | 2015-04-06 00:17:02 +0200 |
| commit | 9906a88df224bc2b8be50fdb14df5eda0936fe34 (patch) | |
| tree | 8645f2fe97b45601567b6e10c410247614cd71ef /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | d4a41d10b2cb5890aeda6b2912973b2a754b05b1 (diff) | |
NFC: st21nfca: fix st21nfca_get_iso14443_3_uid data copy
st21nfca_get_iso14443_3_uid() does not correctly copy the uid from
uid_skb->data to its gate parameter. "gate = uid_skb->data;" only
puts a pointer to uid_skb->data to the local variable gate.
This means that in st21nfca_hci_target_from_gate() the content
of "u8 uid[NFC_NFCID1_MAXSIZE]" local variable is never initialized
before being used in memcpy(target->nfcid1, uid, len).
Fix this by replacing the local variable assignment with a memcpy.
This was found by compiling Linux with
"gcc -Wunused-but-set-parameter".
Acked-by: Christophe Ricard <[email protected]>
Signed-off-by: Nicolas Iooss <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions