]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: llcp: Fix usage of llcp_add_tlv()
authorThierry Escande <thierry.escande@collabora.com>
Wed, 29 Jun 2016 08:48:22 +0000 (10:48 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 6 Jul 2016 08:02:06 +0000 (10:02 +0200)
commitdc2d9ced43c823386d949e09c9713259883d6030
treede94e9274726f79bfe73129ae1c76cc1d246f1d5
parent4ca55262350c234e90a0fbb767972d722c6c36b3
NFC: llcp: Fix usage of llcp_add_tlv()

In functions using llcp_add_tlv(), a skb pointer could be set to NULL
and then reuse afterward.

With this patch, the skb pointer returned by llcp_add_tlv() is ignored
since it can only be the passed skb pointer or NULL when the passed TLV
is NULL. There is also no need to check for the TLV pointer as this is
done by llcp_add_tlv().

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