diff options
Diffstat (limited to 'net/sctp/socket.c')
| -rw-r--r-- | net/sctp/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 6f0a9be50f50..0f378ea2ae38 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
| @@ -4116,7 +4116,7 @@ static int sctp_disconnect(struct sock *sk, int flags) | |||
| 4116 | * descriptor will be returned from accept() to represent the newly | 4116 | * descriptor will be returned from accept() to represent the newly |
| 4117 | * formed association. | 4117 | * formed association. |
| 4118 | */ | 4118 | */ |
| 4119 | static struct sock *sctp_accept(struct sock *sk, int flags, int *err) | 4119 | static struct sock *sctp_accept(struct sock *sk, int flags, int *err, bool kern) |
| 4120 | { | 4120 | { |
| 4121 | struct sctp_sock *sp; | 4121 | struct sctp_sock *sp; |
| 4122 | struct sctp_endpoint *ep; | 4122 | struct sctp_endpoint *ep; |
| @@ -4151,7 +4151,7 @@ static struct sock *sctp_accept(struct sock *sk, int flags, int *err) | |||
| 4151 | */ | 4151 | */ |
| 4152 | asoc = list_entry(ep->asocs.next, struct sctp_association, asocs); | 4152 | asoc = list_entry(ep->asocs.next, struct sctp_association, asocs); |
| 4153 | 4153 | ||
| 4154 | newsk = sp->pf->create_accept_sk(sk, asoc); | 4154 | newsk = sp->pf->create_accept_sk(sk, asoc, kern); |
| 4155 | if (!newsk) { | 4155 | if (!newsk) { |
| 4156 | error = -ENOMEM; | 4156 | error = -ENOMEM; |
| 4157 | goto out; | 4157 | goto out; |
