* [patch] sctp: fix bogus if statement in sctp_auth_recv_cid()
@ 2012-08-16 13:16 Dan Carpenter
2012-08-16 18:23 ` Eric W. Biederman
0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2012-08-16 13:16 UTC (permalink / raw)
To: Eric W. Biederman
Cc: Vlad Yasevich, Sridhar Samudrala, David S. Miller, linux-sctp,
netdev, kernel-janitors
There is an extra semi-colon here, so we always return 0 instead of
calling __sctp_auth_cid().
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
Only needed for linux-next.
diff --git a/net/sctp/auth.c b/net/sctp/auth.c
index aaa6c12..159b9bc 100644
--- a/net/sctp/auth.c
+++ b/net/sctp/auth.c
@@ -695,7 +695,7 @@ int sctp_auth_recv_cid(sctp_cid_t chunk, const struct sctp_association *asoc)
return 0;
net = sock_net(asoc->base.sk);
- if (!net->sctp.auth_enable);
+ if (!net->sctp.auth_enable)
return 0;
return __sctp_auth_cid(chunk,
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [patch] sctp: fix bogus if statement in sctp_auth_recv_cid()
2012-08-16 13:16 [patch] sctp: fix bogus if statement in sctp_auth_recv_cid() Dan Carpenter
@ 2012-08-16 18:23 ` Eric W. Biederman
2012-08-16 20:37 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Eric W. Biederman @ 2012-08-16 18:23 UTC (permalink / raw)
To: Dan Carpenter
Cc: Vlad Yasevich, Sridhar Samudrala, David S. Miller, linux-sctp,
netdev, kernel-janitors
Dan Carpenter <dan.carpenter@oracle.com> writes:
> There is an extra semi-colon here, so we always return 0 instead of
> calling __sctp_auth_cid().
Doh.
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
> Only needed for linux-next.
>
> diff --git a/net/sctp/auth.c b/net/sctp/auth.c
> index aaa6c12..159b9bc 100644
> --- a/net/sctp/auth.c
> +++ b/net/sctp/auth.c
> @@ -695,7 +695,7 @@ int sctp_auth_recv_cid(sctp_cid_t chunk, const struct sctp_association *asoc)
> return 0;
>
> net = sock_net(asoc->base.sk);
> - if (!net->sctp.auth_enable);
> + if (!net->sctp.auth_enable)
> return 0;
>
> return __sctp_auth_cid(chunk,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-16 20:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16 13:16 [patch] sctp: fix bogus if statement in sctp_auth_recv_cid() Dan Carpenter
2012-08-16 18:23 ` Eric W. Biederman
2012-08-16 20:37 ` 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).