Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8abfedd8 authored by Sridhar Samudrala's avatar Sridhar Samudrala Committed by David S. Miller
Browse files

[SCTP]: Use the flags value that is passed as an arg to sctp_accept.



No need to do multiple dereferences - sk->sk_socket->file->f_flags

Signed-off-by: default avatarSridhar Samudrala <sri@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eb5fa39f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2970,7 +2970,7 @@ SCTP_STATIC struct sock *sctp_accept(struct sock *sk, int flags, int *err)
		goto out;
		goto out;
	}
	}


	timeo = sock_rcvtimeo(sk, sk->sk_socket->file->f_flags & O_NONBLOCK);
	timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK);


	error = sctp_wait_for_accept(sk, timeo);
	error = sctp_wait_for_accept(sk, timeo);
	if (error)
	if (error)