OSDN Git Service

net: fix warning in af_unix
authorKyeongdon Kim <kyeongdon.kim@lge.com>
Tue, 16 Oct 2018 05:57:26 +0000 (14:57 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Nov 2019 20:24:22 +0000 (21:24 +0100)
commit12554b2745f83ac21eac72b3212d0744e078576b
treede79ef9ab3f8c6c90d79dba64cc28a1992e793af
parent466c15fb3bf87ecd0a4bc294988a1ec70720d1af
net: fix warning in af_unix

[ Upstream commit 33c4368ee2589c165aebd8d388cbd91e9adb9688 ]

This fixes the "'hash' may be used uninitialized in this function"

net/unix/af_unix.c:1041:20: warning: 'hash' may be used uninitialized in this function [-Wmaybe-uninitialized]
  addr->hash = hash ^ sk->sk_type;

Signed-off-by: Kyeongdon Kim <kyeongdon.kim@lge.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/unix/af_unix.c