mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
commit
b75ec3af27
201 changed files with 1364 additions and 793 deletions
|
|
@ -214,8 +214,15 @@ static int rds_tcp_data_recv(read_descriptor_t *desc, struct sk_buff *skb,
|
|||
}
|
||||
|
||||
to_copy = min(tc->t_tinc_data_rem, left);
|
||||
pskb_pull(clone, offset);
|
||||
pskb_trim(clone, to_copy);
|
||||
if (!pskb_pull(clone, offset) ||
|
||||
pskb_trim(clone, to_copy)) {
|
||||
pr_warn("rds_tcp_data_recv: pull/trim failed "
|
||||
"left %zu data_rem %zu skb_len %d\n",
|
||||
left, tc->t_tinc_data_rem, skb->len);
|
||||
kfree_skb(clone);
|
||||
desc->error = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
skb_queue_tail(&tinc->ti_skb_list, clone);
|
||||
|
||||
rdsdebug("skb %p data %p len %d off %u to_copy %zu -> "
|
||||
|
|
|
|||
Loading…
Reference in a new issue