NFC: Fix LLCP TLV building routine
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 10 Apr 2012 17:43:15 +0000 (19:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 12 Apr 2012 19:10:41 +0000 (15:10 -0400)
commit324b0af6f5a48dc38dac016eed14d019cac5903f
tree99cd8b67782a1331ed36b0185737834ed42b5618
parent279cf174aea84202c5fef4675ff3f1265f071c8e
NFC: Fix LLCP TLV building routine

The if logic could lead to zero length TLVs.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/nfc/llcp/commands.c