Re: [PATCH] NFC: st21nfca,st-nci: fix use of uninitialized variables in error path

2015-07-05 Thread christophe.ricard
Hi Nicolas, Thanks for your fix. I have slit your patch for st21nfca and st-nci in order to propagate them in earlier kernel revision through sta...@vger.kernel.org. I will rework st-nci patch for kernel revision < 4.2 Best Regards Christophe On 29/06/2015 12:17, Nicolas Iooss wrote: st21nfc

[PATCH] NFC: st21nfca,st-nci: fix use of uninitialized variables in error path

2015-06-29 Thread Nicolas Iooss
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