diff options
Diffstat (limited to 'net/sctp/endpointola.c')
-rw-r--r-- | net/sctp/endpointola.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index e358437ba29b..69cebb2c998b 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c | |||
@@ -118,10 +118,6 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, | |||
118 | /* Initialize the bind addr area */ | 118 | /* Initialize the bind addr area */ |
119 | sctp_bind_addr_init(&ep->base.bind_addr, 0); | 119 | sctp_bind_addr_init(&ep->base.bind_addr, 0); |
120 | 120 | ||
121 | /* Remember who we are attached to. */ | ||
122 | ep->base.sk = sk; | ||
123 | sock_hold(ep->base.sk); | ||
124 | |||
125 | /* Create the lists of associations. */ | 121 | /* Create the lists of associations. */ |
126 | INIT_LIST_HEAD(&ep->asocs); | 122 | INIT_LIST_HEAD(&ep->asocs); |
127 | 123 | ||
@@ -154,6 +150,10 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, | |||
154 | ep->prsctp_enable = net->sctp.prsctp_enable; | 150 | ep->prsctp_enable = net->sctp.prsctp_enable; |
155 | ep->reconf_enable = net->sctp.reconf_enable; | 151 | ep->reconf_enable = net->sctp.reconf_enable; |
156 | 152 | ||
153 | /* Remember who we are attached to. */ | ||
154 | ep->base.sk = sk; | ||
155 | sock_hold(ep->base.sk); | ||
156 | |||
157 | return ep; | 157 | return ep; |
158 | 158 | ||
159 | nomem_shkey: | 159 | nomem_shkey: |