]> git.baikalelectronics.ru Git - kernel.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)
commita1b9b9a00ac29a64a5ec9b83e240214c173e2074
treebe1b1c143ad9e87f7a6b9185ee6cada13d8c42b1
parentb6dd9ddb47c93ebd8a5642eb3d785c601f1521fe
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