NFC: st-nci: fix use of uninitialized variables in error path
NFC: st-nci: fix use of uninitialized variables in error path

st_nci_hci_load_session() calls kfree_skb() on unitialized
variables skb_pipe_info and skb_pipe_list if the call to
nci_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 nci_hci_send_cmd.

Cc: 4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@vger.kernel.org
Acked-by: Christophe Ricard <7fc2cd33e78f60c767c0b054f476a876f109b675@st.com>
Signed-off-by: Nicolas Iooss <55afd0fb1f1ce5f067f0822840bbfc35c48fdecb@m4x.org>
Signed-off-by: Samuel Ortiz <0ba86cb3f08bbb861958e54bd3438887adb4263c@linux.intel.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs