kernel_optimize_test/net/rxrpc
David Howells c501256406 rxrpc: Use correct netns source in rxrpc_release_sock()
In rxrpc_release_sock() there may be no rx->local value to access, so we
can't unconditionally follow it to the rxrpc network namespace information
to poke the connection reapers.

Instead, use the socket's namespace pointer to find the namespace.

This unfixed code causes the following static checker warning:

	net/rxrpc/af_rxrpc.c:898 rxrpc_release_sock()
	error: we previously assumed 'rx->local' could be null (see line 887)

Fixes: 3d18cbb7fd ("rxrpc: Fix conn expiry timers")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-03 10:05:20 -05:00
..
af_rxrpc.c rxrpc: Use correct netns source in rxrpc_release_sock() 2017-12-03 10:05:20 -05:00
ar-internal.h rxrpc: Fix conn expiry timers 2017-11-24 10:18:42 +00:00
call_accept.c rxrpc: Provide a different lockdep key for call->user_mutex for kernel calls 2017-11-24 10:18:40 +00:00
call_event.c rxrpc: Fix variable overwrite 2017-11-29 14:44:22 +00:00
call_object.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-29 13:10:25 -08:00
conn_client.c rxrpc: Fix conn expiry timers 2017-11-24 10:18:42 +00:00
conn_event.c rxrpc: Fix ACK generation from the connection event processor 2017-11-29 14:40:41 +00:00
conn_object.c rxrpc: Clean up whitespace 2017-11-29 14:40:41 +00:00
conn_service.c
input.c rxrpc: Clean up whitespace 2017-11-29 14:40:41 +00:00
insecure.c
Kconfig
key.c
local_event.c
local_object.c
Makefile
misc.c rxrpc: Fix call timeouts 2017-11-24 10:18:41 +00:00
net_ns.c rxrpc: Fix conn expiry timers 2017-11-24 10:18:42 +00:00
output.c rxrpc: Add keepalive for a call 2017-11-24 10:18:42 +00:00
peer_event.c
peer_object.c
proc.c
protocol.h
recvmsg.c rxrpc: Add a timeout for detecting lost ACKs/lost DATA 2017-11-24 10:18:42 +00:00
rxkad.c
security.c
sendmsg.c rxrpc: Fix variable overwrite 2017-11-29 14:44:22 +00:00
skbuff.c
sysctl.c rxrpc: Fix call timeouts 2017-11-24 10:18:41 +00:00
utils.c