diff --git a/[refs] b/[refs] index 2beaed6c4b15..dd6c421de7cb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c1baa88431fe0fe4fad492dece4177a7735f89cf +refs/heads/master: c89304b8ea34ab48ba6ae10e06a8b1b8c8212307 diff --git a/trunk/net/sctp/auth.c b/trunk/net/sctp/auth.c index 865e68fef21c..bf812048cf6f 100644 --- a/trunk/net/sctp/auth.c +++ b/trunk/net/sctp/auth.c @@ -82,7 +82,7 @@ static struct sctp_auth_bytes *sctp_auth_create_key(__u32 key_len, gfp_t gfp) struct sctp_auth_bytes *key; /* Verify that we are not going to overflow INT_MAX */ - if ((INT_MAX - key_len) < sizeof(struct sctp_auth_bytes)) + if (key_len > (INT_MAX - sizeof(struct sctp_auth_bytes))) return NULL; /* Allocate the shared key */