linux/net/rxrpc
Arnd Bergmann 2f9f9f5210 rxrpc: fix uninitialized variable use
Hashing the peer key was introduced for AF_INET, but gcc
warns about the rxrpc_peer_hash_key function returning uninitialized
data for any other value of srx->transport.family:

net/rxrpc/peer_object.c: In function 'rxrpc_peer_hash_key':
net/rxrpc/peer_object.c:57:15: error: 'p' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Assuming that nothing else can be set here, this changes the
function to just return zero in case of an unknown address
family.

Fixes: be6e6707f6 ("rxrpc: Rework peer object handling to use hash table and RCU")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David Howells <dhowells@redhat.com>
2016-06-22 09:09:58 +01:00
..
af_rxrpc.c rxrpc: checking for IS_ERR() instead of NULL 2016-06-22 09:09:58 +01:00
ar-internal.h rxrpc: Rework local endpoint management 2016-06-15 15:38:17 +01:00
call_accept.c rxrpc: checking for IS_ERR() instead of NULL 2016-06-22 09:09:58 +01:00
call_event.c rxrpc: Use the peer record to distribute network errors 2016-06-15 10:15:16 +01:00
call_object.c rxrpc: Use the peer record to distribute network errors 2016-06-15 10:15:16 +01:00
conn_event.c rxrpc: Rework local endpoint management 2016-06-15 15:38:17 +01:00
conn_object.c rxrpc: Rename files matching ar-*.c to git rid of the "ar-" prefix 2016-06-13 12:16:05 +01:00
input.c rxrpc: checking for IS_ERR() instead of NULL 2016-06-22 09:09:58 +01:00
insecure.c rxrpc: Create a null security type and get rid of conditional calls 2016-04-11 15:34:41 -04:00
Kconfig rxrpc: Absorb the rxkad security module 2016-04-11 15:34:41 -04:00
key.c rxrpc: Rename files matching ar-*.c to git rid of the "ar-" prefix 2016-06-13 12:16:05 +01:00
local_event.c rxrpc: Rework local endpoint management 2016-06-15 15:38:17 +01:00
local_object.c rxrpc: Rework local endpoint management 2016-06-15 15:38:17 +01:00
Makefile rxrpc: Separate local endpoint event handling out into its own file 2016-06-15 15:37:12 +01:00
misc.c rxrpc: Limit the listening backlog 2016-06-10 18:14:47 -07:00
output.c rxrpc: Use the peer record to distribute network errors 2016-06-15 10:15:16 +01:00
peer_event.c rxrpc: Use the peer record to distribute network errors 2016-06-15 10:15:16 +01:00
peer_object.c rxrpc: fix uninitialized variable use 2016-06-22 09:09:58 +01:00
proc.c rxrpc: Rename files matching ar-*.c to git rid of the "ar-" prefix 2016-06-13 12:16:05 +01:00
recvmsg.c rxrpc: Rename files matching ar-*.c to git rid of the "ar-" prefix 2016-06-13 12:16:05 +01:00
rxkad.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-06-10 11:52:24 -07:00
security.c rxrpc: Rename files matching ar-*.c to git rid of the "ar-" prefix 2016-06-13 12:16:05 +01:00
skbuff.c rxrpc: Rename files matching ar-*.c to git rid of the "ar-" prefix 2016-06-13 12:16:05 +01:00
sysctl.c rxrpc: Limit the listening backlog 2016-06-10 18:14:47 -07:00
transport.c rxrpc: Use the peer record to distribute network errors 2016-06-15 10:15:16 +01:00
utils.c rxrpc: Rework peer object handling to use hash table and RCU 2016-06-15 10:12:33 +01:00