netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vincent Duvert <vincent.ldev@duvert.net>
To: netdev@vger.kernel.org
Cc: Vincent Duvert <vincent.ldev@duvert.net>
Subject: [PATCH 1/2] appletalk: Fix atalk_proc_init return path
Date: Wed, 22 Jul 2020 13:37:51 +0200	[thread overview]
Message-ID: <20200722113752.1218-1-vincent.ldev@duvert.net> (raw)

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@duvert.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


             reply	other threads:[~2020-07-22 11:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22 11:37 Vincent Duvert [this message]
2020-07-22 11:37 ` [PATCH 2/2] appletalk: Improve handling of broadcast packets Vincent Duvert
2020-07-23  0:31   ` David Miller
2020-07-23  0:30 ` [PATCH 1/2] appletalk: Fix atalk_proc_init return path David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200722113752.1218-1-vincent.ldev@duvert.net \
    --to=vincent.ldev@duvert.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).