]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Use skb->len not skb->data_len
authorDavid Howells <dhowells@redhat.com>
Tue, 13 Sep 2016 21:36:22 +0000 (22:36 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 13 Sep 2016 21:36:22 +0000 (22:36 +0100)
commit9035bd1de76e2fb28e02e9fffbbd45556c3ab7f5
treeed063e32a21cebf65a15f6efbb01c2e25d60579c
parent4cdff4227636a51817d8b38dcaa198328689c267
rxrpc: Use skb->len not skb->data_len

skb->len should be used rather than skb->data_len when referring to the
amount of data in a packet.  This will only cause a malfunction in the
following cases:

 (1) We receive a jumbo packet (validation and splitting both are wrong).

 (2) We see if there's extra ACK info in an ACK packet (we think it's not
     there and just ignore it).

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/input.c