]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: llcp: Fix 2 memory leaks
authorThierry Escande <thierry.escande@collabora.com>
Wed, 29 Jun 2016 08:48:23 +0000 (10:48 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 6 Jul 2016 08:02:06 +0000 (10:02 +0200)
commit916948196fd8ec71e75d46fa43ffba671cae643f
tree2691c87eaa34f7a20f82103f68e7e515ba03a552
parentdc2d9ced43c823386d949e09c9713259883d6030
NFC: llcp: Fix 2 memory leaks

Once copied into the sk_buff data area using llcp_add_tlv(), the
allocated TLVs must be freed.

With this patch nfc_llcp_send_connect() and nfc_llcp_send_cc() don't
return immediately on success and now free the allocated TLVs.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/llcp_commands.c