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:
09e79d6
)
f_phonet: fix skb truesize underestimation
author
Eric Dumazet
<
[email protected]
>
Tue, 27 Mar 2012 03:04:02 +0000
(
03:04
+0000)
committer
David S. Miller
<
[email protected]
>
Wed, 28 Mar 2012 02:50:54 +0000
(22:50 -0400)
Now skb_add_rx_frag() has a truesize parameter, we can fix f_phonet to
properly account truesize of each fragment : a full page.
Signed-off-by: Eric Dumazet <
[email protected]
>
Cc: Felipe Balbi <
[email protected]
>
Cc: Greg Kroah-Hartman <
[email protected]
>
Cc: Rémi Denis-Courmont <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/usb/gadget/f_phonet.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_phonet.c
b/drivers/usb/gadget/f_phonet.c
index 85a5cebe96b3635fb521d648f937c7e938e7a6c2..965a6293206acc5bb52facb12d8acf50d3c3c6a2 100644
(file)
--- a/
drivers/usb/gadget/f_phonet.c
+++ b/
drivers/usb/gadget/f_phonet.c
@@
-345,7
+345,7
@@
static void pn_rx_complete(struct usb_ep *ep, struct usb_request *req)
}
skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, page,
- skb->len <= 1, req->actual,
req->actual
);
+ skb->len <= 1, req->actual,
PAGE_SIZE
);
page = NULL;
if (req->actual < req->length) { /* Last fragment */