From: Randy Dunlap <randy.dunlap@oracle•com>
To: linux-next@vger•kernel.org
Cc: netdev <netdev@vger•kernel.org>, davem@davemloft•net
Subject: [PATCH -next] sctp: fix missing label when PROC_FS=n
Date: Thu, 27 Nov 2008 12:18:24 -0800 [thread overview]
Message-ID: <20081127121824.5b3515c9.randy.dunlap@oracle.com> (raw)
From: Randy Dunlap <randy.dunlap@oracle•com>
Fix missing label when CONFIG_PROC_FS=n:
net/sctp/protocol.c: In function 'sctp_proc_init':
net/sctp/protocol.c:106: error: label 'out_nomem' used but not defined
make[3]: *** [net/sctp/protocol.o] Error 1
Signed-off-by: Randy Dunlap <randy.dunlap@oracle•com>
---
net/sctp/protocol.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- linux-next-20081127.orig/net/sctp/protocol.c
+++ linux-next-20081127/net/sctp/protocol.c
@@ -139,11 +139,12 @@ out_snmp_proc_init:
}
out_free_percpu:
percpu_counter_destroy(&sctp_sockets_allocated);
-out_nomem:
- return -ENOMEM;
#else
return 0;
#endif /* CONFIG_PROC_FS */
+
+out_nomem:
+ return -ENOMEM;
}
/* Clean up the proc fs entry for the SCTP protocol.
next reply other threads:[~2008-11-27 20:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-27 20:18 Randy Dunlap [this message]
2008-11-27 23:31 ` [PATCH -next] sctp: fix missing label when PROC_FS=n 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=20081127121824.5b3515c9.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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