linux_dsm_epyc7002/drivers/nfc/st21nfca
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
..
core.c NFC: st21nfca: Fix potential memory leak 2017-04-02 00:18:35 +02:00
dep.c NFC: st21nfca: Add error messages for unexpected HCI events 2015-10-27 03:55:13 +01:00
i2c.c nfc: st21nfca: Remove unneeded linux/miscdevice.h include 2017-04-02 00:01:36 +02:00
Kconfig NFC: st21nfca: Auto-select core module 2015-12-29 19:06:19 +01:00
Makefile NFC: st21nfca: Add support for proprietary commands 2015-10-27 04:00:24 +01:00
se.c nfc: st21nfca: Remove duplicated ST21NFCA_ESE_HOST_ID from se.c 2016-05-04 01:40:28 +02:00
st21nfca.h NFC: st21nfca: Add support for proprietary commands 2015-10-27 04:00:24 +01:00
vendor_cmds.c NFC: st21nfca: Add support for proprietary commands 2015-10-27 04:00:24 +01:00