projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-florian' of git://gitorious.org/linux-omap-dss2/linux into fbdev...
[platform/kernel/linux-starfive.git]
/
net
/
sctp
/
auth.c
diff --git
a/net/sctp/auth.c
b/net/sctp/auth.c
index
865e68f
..
bf81204
100644
(file)
--- a/
net/sctp/auth.c
+++ b/
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 */