]> asedeno.scripts.mit.edu Git - linux.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)
commit89a80ed4c09afb2aff6abe32f6dd68605f857a7d
treeed063e32a21cebf65a15f6efbb01c2e25d60579c
parentb25de3605339c94a6c27d42efe8f7748ea206a8b
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