]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Validate the net address given to rxrpc_kernel_begin_call()
authorDavid Howells <dhowells@redhat.com>
Fri, 17 Jun 2016 10:00:48 +0000 (11:00 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 22 Jun 2016 08:17:51 +0000 (09:17 +0100)
commitc51500afbd52119b76c08514e562049decbe19f2
tree2236af71df6ff792ac2d2ffd9f483ffcfd5c3c18
parent4af2b8448ffdee366042a10c18d718ecc3e0fdae
rxrpc: Validate the net address given to rxrpc_kernel_begin_call()

Validate the net address given to rxrpc_kernel_begin_call() before using
it.

Whilst this should be mostly unnecessary for in-kernel users, it does clear
the tail of the address struct in case we want to hash or compare the whole
thing.

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