]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
rxrpc: Fix an uninitialised variable
authorDavid Howells <dhowells@redhat.com>
Thu, 11 Oct 2018 21:32:31 +0000 (22:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 05:07:36 +0000 (22:07 -0700)
Fix an uninitialised variable introduced by the last patch.  This can cause
a crash when a new call comes in to a local service, such as when an AFS
fileserver calls back to the local cache manager.

Fixes: c1e15b4944c9 ("rxrpc: Fix the packet reception routine")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/call_accept.c

index 652e314de38ebf16c8682234cb1150dc9bf485f5..8079aacaecace1498c71d0d0ac13937992cc4612 100644 (file)
@@ -337,7 +337,7 @@ struct rxrpc_call *rxrpc_new_incoming_call(struct rxrpc_local *local,
 {
        struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
        struct rxrpc_connection *conn;
-       struct rxrpc_peer *peer;
+       struct rxrpc_peer *peer = NULL;
        struct rxrpc_call *call;
 
        _enter("");