Skip to content
Commit 30787a41 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David Howells
Browse files

rxrpc: fix undefined behavior in rxrpc_mark_call_released



gcc -Wmaybe-initialized correctly points out a newly introduced bug
through which we can end up calling rxrpc_queue_call() for a dead
connection:

net/rxrpc/call_object.c: In function 'rxrpc_mark_call_released':
net/rxrpc/call_object.c:600:5: error: 'sched' may be used uninitialized in this function [-Werror=maybe-uninitialized]

This sets the 'sched' variable to zero to restore the previous
behavior.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: f5c17aae

 ("rxrpc: Calls should only have one terminal state")
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent dd19bde3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment