]> 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)
commit4291fbdec3457a17af82fa9d0b38b3337c632c2e
treea5fe93f58dc7d56d8731c9625df2f1efdc0bf436
parent0d54c59ab22245699fc5be5cef256450fc5d97ca
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