Re: [patch net-next] tipc: uninitialized return code in tipc_setsockopt()

2017-01-25 Thread David Miller
From: Dan Carpenter Date: Tue, 24 Jan 2017 12:49:35 +0300 > 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 Applied, tha

[patch net-next] tipc: uninitialized return code in tipc_setsockopt()

2017-01-24 Thread Dan Carpenter
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 diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 5bec8aac5008..103d1fd058c