]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: fix warning in af_unix
authorKyeongdon Kim <kyeongdon.kim@lge.com>
Tue, 16 Oct 2018 05:57:26 +0000 (14:57 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:57:28 +0000 (21:57 -0700)
commit33c4368ee2589c165aebd8d388cbd91e9adb9688
treebe1b1c143ad9e87f7a6b9185ee6cada13d8c42b1
parent26422340da467538cd65eaa9c65538039ee99c8c
net: fix warning in af_unix

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>
net/unix/af_unix.c