linux/drivers/nfc
Christophe JAILLET 8f79ded959 NFC: st21nfca: Fix potential memory leak
If all bits of 'dev_mask' are already set, there is a memory leak because
'info' should be freed before returning.

While fixing it, 'return -ENOMEM' directly if the first kzalloc fails.
This makes the code more readable.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2017-04-02 00:18:35 +02:00
..
fdp NFC: fdp: Detect errors from fdp_nci_create_conn() 2016-07-04 12:17:56 +02:00
microread nfc: mei: use module_mei_cl_driver macro 2016-10-28 08:21:21 -04:00
nfcmrvl NFC: nfcmrvl: double free on error path 2017-04-02 00:09:17 +02:00
nxp-nci nfc: nxp-nci: Remove unneeded linux/miscdevice.h include 2017-04-02 00:01:36 +02:00
pn533 scripts/spelling.txt: add "omited" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
pn544 nfc: pn544: Remove unneeded linux/miscdevice.h include 2017-04-02 00:01:36 +02:00
s3fwrn5 nfc: s3fwrn5: Use shash 2016-01-27 20:36:09 +08:00
st21nfca NFC: st21nfca: Fix potential memory leak 2017-04-02 00:18:35 +02:00
st95hf NFC: st95hf: Fix build error 2015-12-29 19:06:12 +01:00
st-nci nfc: st-nci: Move loopback usage from HCI to NCI 2016-05-04 01:51:42 +02:00
Kconfig NFC: remove TI nfcwilink driver 2017-04-01 23:04:30 +02:00
Makefile NFC: remove TI nfcwilink driver 2017-04-01 23:04:30 +02:00
mei_phy.c mei: bus: split RX and async notification callbacks 2016-11-17 16:37:49 +01:00
mei_phy.h mei: bus: complete variable rename of type struct mei_cl_device 2015-09-20 19:31:09 -07:00
nfcsim.c NFC: nfcsim: Simulate lost frames through debugfs entry 2016-07-19 23:24:49 +02:00
port100.c nfc: Fix hangup of RC-S380* in port100_send_ack() 2017-04-01 23:04:30 +02:00
trf7970a.c NFC: trf7970a: add TI recommended write of zero to Register 0x18 2016-07-04 12:20:21 +02:00