linux-stable/drivers/nfc
Christophe Ricard 9906a88df2 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 <christophe-h.ricard@st.com>
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2015-04-06 00:17:02 +02:00
..
microread NFC: microread: Change event_received gate parameter to pipe 2015-01-28 00:03:35 +01:00
nfcmrvl NFC: nfcmrvl: Fix possible memory leak issue 2014-01-09 01:27:20 +01:00
nxp-nci NFC: nxp-nci_i2c: Add I2C support to NXP NCI driver 2015-03-26 11:21:41 +01:00
pn544 NFC: Add ACPI support for NXP PN544 2015-01-28 01:09:08 +01:00
st21nfca NFC: st21nfca: fix st21nfca_get_iso14443_3_uid data copy 2015-04-06 00:17:02 +02:00
st21nfcb NFC: st21nfcb: Retry i2c_master_send if it returns a negative value 2015-04-06 00:16:01 +02:00
Kconfig NFC: nxp-nci: Add support for NXP NCI chips 2015-03-26 11:07:50 +01:00
Makefile NFC: nxp-nci: Add support for NXP NCI chips 2015-03-26 11:07:50 +01:00
mei_phy.c NFC: mei_phy: Using kfree_skb() instead of kfree() 2014-01-04 03:32:26 +01:00
mei_phy.h NFC: mei: Add a common mei bus API for NFC drivers 2013-04-16 00:39:31 +02:00
nfcsim.c NFC: Convert nfc_dev_info and nfc_dev_err to nfc_<level> 2013-09-25 01:35:39 +02:00
nfcwilink.c nfc: drop owner assignment from platform_drivers 2014-10-20 16:21:19 +02:00
pn533.c NFC: pn533: Convert to use USB_DEVICE macro 2014-02-23 23:32:18 +01:00
port100.c NFC: port100: Add support for type 4B tag 2014-05-26 00:42:02 +02:00
trf7970a.c NFC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM 2014-12-15 15:12:21 +01:00