projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
networking: introduce and use skb_put_data()
[linux-block.git]
/
net
/
bluetooth
/
rfcomm
/
tty.c
diff --git
a/net/bluetooth/rfcomm/tty.c
b/net/bluetooth/rfcomm/tty.c
index 2f2cb5e27cdd4dc9b6079b5d602c89e510bd9ab8..5f3074cb6b4db67aad4491e99e291f073e1876c5 100644
(file)
--- a/
net/bluetooth/rfcomm/tty.c
+++ b/
net/bluetooth/rfcomm/tty.c
@@
-798,7
+798,7
@@
static int rfcomm_tty_write(struct tty_struct *tty, const unsigned char *buf, in
skb_reserve(skb, RFCOMM_SKB_HEAD_RESERVE);
-
memcpy(skb_put(skb, size)
, buf + sent, size);
+
skb_put_data(skb
, buf + sent, size);
rfcomm_dlc_send_noerror(dlc, skb);