]> 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)
commita9f3e3c6294074fe8ad84726d1fa1fcccd3e8abd
treeed063e32a21cebf65a15f6efbb01c2e25d60579c
parent01552ba18878698cb9a9402bd7333776336b3587
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