net/handshake: Fix uninitialized local variable
authorChuck Lever <chuck.lever@oracle.com>
Thu, 11 May 2023 15:48:13 +0000 (11:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2023 08:24:07 +0000 (09:24 +0100)
commit7301034026d0efe0e86af0cb685405da120583d4
tree007c2322fe7106b8ebb458ae122b2e11e05abb1a
parent2200c1a87074548f0a36e5aae5ad283ce2ac43b2
net/handshake: Fix uninitialized local variable

trace_handshake_cmd_done_err() simply records the pointer in @req,
so initializing it to NULL is sufficient and safe.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: 3b3009ea8abb ("net/handshake: Create a NETLINK service for handling handshake requests")
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/handshake/netlink.c