projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
279cf17
)
NFC: Fix LLCP TLV building routine
author
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 10 Apr 2012 17:43:15 +0000
(19:43 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Thu, 12 Apr 2012 19:10:41 +0000
(15:10 -0400)
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
patch
|
blob
|
blame
|
history
diff --git
a/net/nfc/llcp/commands.c
b/net/nfc/llcp/commands.c
index 4aa52b8b6c0c5315bc37dc1a56db5f539c414e3a..34ee6847806ab55b4be1f6ebb14b18be06596474 100644
(file)
--- a/
net/nfc/llcp/commands.c
+++ b/
net/nfc/llcp/commands.c
@@
-102,7
+102,7
@@
u8 *nfc_llcp_build_tlv(u8 type, u8 *value, u8 value_length, u8 *tlv_length)
length = llcp_tlv_length[type];
if (length == 0 && value_length == 0)
return NULL;
- else
+ else
if (length == 0)
length = value_length;
*tlv_length = 2 + length;