tipc: uninitialized return code in tipc_setsockopt()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Jan 2017 09:49:35 +0000 (12:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2017 17:41:34 +0000 (12:41 -0500)
commita08ef4768f479a712f80426fba42d16253feb37c
tree56ad9e7d48e7cac98e2a61a87d9497ea94599d31
parent1045ba77a5962a22bce7777678ef46714107ea63
tipc: uninitialized return code in tipc_setsockopt()

We shuffled some code around and added some new case statements here and
now "res" isn't initialized on all paths.

Fixes: 01fd12bb189a ("tipc: make replicast a user selectable option")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c