]> git.baikalelectronics.ru Git - kernel.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)
commit2aef1daa8e589cc193e4e2256d226dce1091ae13
treea5fe93f58dc7d56d8731c9625df2f1efdc0bf436
parentb5136173b2a4554794b8d83c9beef263a91a7836
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