[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200722113752.1218-1-vincent.ldev@duvert.net>
Date: Wed, 22 Jul 2020 13:37:51 +0200
From: Vincent Duvert <vincent.ldev@...ert.net>
To: netdev@...r.kernel.org
Cc: Vincent Duvert <vincent.ldev@...ert.net>
Subject: [PATCH 1/2] appletalk: Fix atalk_proc_init return path
Add a missing return statement to atalk_proc_init so it doesn't return
-ENOMEM when successful. This allows the appletalk module to load
properly.
Signed-off-by: Vincent Duvert <vincent.ldev@...ert.net>
---
net/appletalk/atalk_proc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/appletalk/atalk_proc.c b/net/appletalk/atalk_proc.c
index 550c6ca007cc..9c1241292d1d 100644
--- a/net/appletalk/atalk_proc.c
+++ b/net/appletalk/atalk_proc.c
@@ -229,6 +229,8 @@ int __init atalk_proc_init(void)
sizeof(struct aarp_iter_state), NULL))
goto out;
+ return 0;
+
out:
remove_proc_subtree("atalk", init_net.proc_net);
return -ENOMEM;
--
2.20.1
Powered by blists - more mailing lists