mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[SK_BUFF]: Convert skb->end to sk_buff_data_t
Now to convert the last one, skb->data, that will allow many simplifications and removal of some of the offset helpers. Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
27a884dc3c
commit
4305b54135
15 changed files with 101 additions and 56 deletions
|
|
@ -335,12 +335,12 @@ static void usbatm_extract_one_cell(struct usbatm_data *instance, unsigned char
|
|||
|
||||
sarb = instance->cached_vcc->sarb;
|
||||
|
||||
if (skb_tail_pointer(sarb) + ATM_CELL_PAYLOAD > sarb->end) {
|
||||
if (sarb->tail + ATM_CELL_PAYLOAD > sarb->end) {
|
||||
atm_rldbg(instance, "%s: buffer overrun (sarb->len %u, vcc: 0x%p)!\n",
|
||||
__func__, sarb->len, vcc);
|
||||
/* discard cells already received */
|
||||
skb_trim(sarb, 0);
|
||||
UDSL_ASSERT(skb_tail_pointer(sarb) + ATM_CELL_PAYLOAD <= sarb->end);
|
||||
UDSL_ASSERT(sarb->tail + ATM_CELL_PAYLOAD <= sarb->end);
|
||||
}
|
||||
|
||||
memcpy(skb_tail_pointer(sarb), source + ATM_CELL_HEADER, ATM_CELL_PAYLOAD);
|
||||
|
|
|
|||
Loading…
Reference in a new issue