Skip to contentSkip to conversation

nets: fix problem of return value

PATCH/2 Applied Jianjun Kong 2 participants 2 messages Nov 1, 2008 – Nov 2, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

fix problem of return value

net/unix/af_unix.c: unix_net_init()
when error appears, it should return 'error', not always return 0.

---
 net/unix/af_unix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/unix/af_unix.c +1 -1
index 0b80634..7d2e4f8 100644
@@ -2212,7 +2212,7 @@ static int unix_net_init(struct net *net)
 #endif
 	error = 0;
 out:
-	return 0;
+	return error;
 }
 
 static void unix_net_exit(struct net *net)
Signature · 1 line
1.5.6.3