Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276249
b: refs/heads/master
c: c89304b
h: refs/heads/master
i:
  276247: 8ab198b
v: v3
  • Loading branch information
Xi Wang authored and David S. Miller committed Nov 29, 2011
1 parent f035132 commit 8360d6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1baa88431fe0fe4fad492dece4177a7735f89cf
refs/heads/master: c89304b8ea34ab48ba6ae10e06a8b1b8c8212307
2 changes: 1 addition & 1 deletion trunk/net/sctp/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8360d6d

Please sign in to comment.