* [PATCH -next] sctp: fix missing label when PROC_FS=n
@ 2008-11-27 20:18 Randy Dunlap
2008-11-27 23:31 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-11-27 20:18 UTC (permalink / raw)
To: linux-next; +Cc: netdev, davem
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] sctp: fix missing label when PROC_FS=n
2008-11-27 20:18 [PATCH -next] sctp: fix missing label when PROC_FS=n Randy Dunlap
@ 2008-11-27 23:31 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-11-27 23:31 UTC (permalink / raw)
To: randy.dunlap; +Cc: linux-next, netdev
From: Randy Dunlap <randy.dunlap@oracle.com>
Date: Thu, 27 Nov 2008 12:18:24 -0800
> 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>
Applied, thanks a lot Randy.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-27 23:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27 20:18 [PATCH -next] sctp: fix missing label when PROC_FS=n Randy Dunlap
2008-11-27 23:31 ` David Miller
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).