]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rxrpc: Improve up-front incoming packet checking
authorDavid Howells <dhowells@redhat.com>
Thu, 27 Sep 2018 14:13:08 +0000 (15:13 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 28 Sep 2018 09:32:31 +0000 (10:32 +0100)
commit403fc2a138457f1071b186786a7589ef7382c8bc
treea5fe93f58dc7d56d8731c9625df2f1efdc0bf436
parentece64fec164f523bfbe874abdef2a0e6ff376251
rxrpc: Improve up-front incoming packet checking

Do more up-front checking on incoming packets to weed out invalid ones and
also ones aimed at services that we don't support.

Whilst we're at it, replace the clearing of call and skew if we don't find
a connection with just initialising the variables to zero at the top of the
function.

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