linux/drivers/nfc
Christophe Ricard 5a3570061a NFC: st21nfca: fix use of uninitialized variables in error path
st21nfca_hci_load_session() calls kfree_skb() on unitialized
variables skb_pipe_info and skb_pipe_list if the call to
nfc_hci_connect_gate() failed. Reword the error path to not use
these variables when they are not initialized. While at it, there
seemed to be a memory leak because skb_pipe_info was only freed
once, after the for-loop, even though several ones were created
by nfc_hci_send_cmd.

Fixes: ec03ff1a8f
("NFC: st21nfca: Remove skb_pipe_list and skb_pipe_info
useless allocation")

Cc: stable@vger.kernel.org
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-08-17 00:35:07 +02:00
..
microread Char/Misc driver patches for 4.2-rc1 2015-06-26 14:51:15 -07:00
nfcmrvl NFC: nfcmrvl: set PB_BAIL_OUT at setup 2015-06-13 00:08:55 +02:00
nxp-nci NFC: Remove obsolete setting of DEBUG 2015-06-09 00:34:09 +02:00
pn544 Char/Misc driver patches for 4.2-rc1 2015-06-26 14:51:15 -07:00
st21nfca NFC: st21nfca: fix use of uninitialized variables in error path 2015-08-17 00:35:07 +02:00
st-nci nfc: st-nci: Fix non accurate comment for st_nci_i2c_read 2015-08-17 00:35:07 +02:00
Kconfig nfc: st-nci: Rename st21nfcb to st-nci 2015-06-10 12:51:44 +02:00
Makefile nfc: st-nci: Rename st21nfcb to st-nci 2015-06-10 12:51:44 +02:00
mei_phy.c NFC: mei_phy: adjust mei nfc header according the spec 2015-05-24 11:15:54 -07:00
mei_phy.h mei: fix up uuid matching 2015-05-31 12:14:00 +09: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: logging neatening 2015-04-07 12:05:12 +02:00
port100.c NFC: logging neatening 2015-04-07 12:05:12 +02:00
trf7970a.c NFC: trf7970a: Handle extra byte in response to Type 5 RMB commands 2015-06-08 23:16:31 +02:00