projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
673f778
)
NFC: Fix the LLCP Tx fragmentation loop
author
Samuel Ortiz
<
[email protected]
>
Tue, 10 Apr 2012 17:43:03 +0000
(19:43 +0200)
committer
John W. Linville
<
[email protected]
>
Wed, 11 Apr 2012 19:09:33 +0000
(15:09 -0400)
Reported-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
net/nfc/llcp/commands.c
patch
|
blob
|
history
diff --git
a/net/nfc/llcp/commands.c
b/net/nfc/llcp/commands.c
index 7b76eb7192f37fc50167d39ff6d2a1d7ffc400e4..ef10ffcb4b6ffb5ed79eecdc8005dccc0de34575 100644
(file)
--- a/
net/nfc/llcp/commands.c
+++ b/
net/nfc/llcp/commands.c
@@
-474,7
+474,7
@@
int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,
while (remaining_len > 0) {
- frag_len = min_t(
u16
, local->remote_miu, remaining_len);
+ frag_len = min_t(
size_t
, local->remote_miu, remaining_len);
pr_debug("Fragment %zd bytes remaining %zd",
frag_len, remaining_len);
@@
-497,7
+497,7
@@
int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,
release_sock(sk);
remaining_len -= frag_len;
- msg_ptr += len;
+ msg_ptr +=
frag_
len;
}
kfree(msg_data);