diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-06-17 11:55:22 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-06-22 09:09:58 +0100 |
commit | 2f9f9f5210887b1019fbd0327ffdf7c3aff271fd (patch) | |
tree | 4e89c3d2c840cb134048b85f7531da716d806812 /net/rxrpc/proc.c | |
parent | 0e4699e4a37be4cfa07f0340cef6a3fa6a46f5f8 (diff) | |
download | op-kernel-dev-2f9f9f5210887b1019fbd0327ffdf7c3aff271fd.zip op-kernel-dev-2f9f9f5210887b1019fbd0327ffdf7c3aff271fd.tar.gz |
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: be6e6707f6ee ("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>
Diffstat (limited to 'net/rxrpc/proc.c')
0 files changed, 0 insertions, 0 deletions