diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2007-05-04 16:36:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-05-04 16:36:30 -0400 |
commit | 827bf12236fbafc02bc899aec1b37c342c8cf4e5 (patch) | |
tree | 41101b0d866629b3cc3341712996f11e655f6250 /include/net/sctp/sctp.h | |
parent | ce5325c1338acf965f4300f4976eac2129aeb439 (diff) |
[SCTP]: Re-order SCTP initializations to avoid race with sctp_rcv()
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/sctp.h')
-rw-r--r-- | include/net/sctp/sctp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 28af68059521..dda72bf5b9b4 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -378,11 +378,15 @@ static inline int sctp_sysctl_jiffies_ms(ctl_table *table, int __user *name, int | |||
378 | 378 | ||
379 | int sctp_v6_init(void); | 379 | int sctp_v6_init(void); |
380 | void sctp_v6_exit(void); | 380 | void sctp_v6_exit(void); |
381 | int sctp_v6_add_protocol(void); | ||
382 | void sctp_v6_del_protocol(void); | ||
381 | 383 | ||
382 | #else /* #ifdef defined(CONFIG_IPV6) */ | 384 | #else /* #ifdef defined(CONFIG_IPV6) */ |
383 | 385 | ||
384 | static inline int sctp_v6_init(void) { return 0; } | 386 | static inline int sctp_v6_init(void) { return 0; } |
385 | static inline void sctp_v6_exit(void) { return; } | 387 | static inline void sctp_v6_exit(void) { return; } |
388 | static inline int sctp_v6_add_protocol(void) { return 0; } | ||
389 | static inline void sctp_v6_del_protocol(void) { return; } | ||
386 | 390 | ||
387 | #endif /* #if defined(CONFIG_IPV6) */ | 391 | #endif /* #if defined(CONFIG_IPV6) */ |
388 | 392 | ||