projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e73fc9
)
Revert "net: sctp: fix array overrun read on sctp_timer_tbl"
author
David S. Miller
<davem@davemloft.net>
Fri, 20 Jan 2017 16:29:43 +0000
(11:29 -0500)
committer
David S. Miller
<davem@davemloft.net>
Fri, 20 Jan 2017 16:29:43 +0000
(11:29 -0500)
This reverts commit
0e73fc9a56f22f2eec4d2b2910c649f7af67b74d
.
This fix wasn't correct, a better one is coming right up.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/debug.c
patch
|
blob
|
history
diff --git
a/net/sctp/debug.c
b/net/sctp/debug.c
index e371a0d90068f23ece604e7f230a020dab06f1f0..95d7b15dad2143dc6a74003125be719e72aeee24 100644
(file)
--- a/
net/sctp/debug.c
+++ b/
net/sctp/debug.c
@@
-166,7
+166,7
@@
static const char *const sctp_timer_tbl[] = {
/* Lookup timer debug name. */
const char *sctp_tname(const sctp_subtype_t id)
{
- if (id.timeout <
ARRAY_SIZE(sctp_timer_tbl)
)
+ if (id.timeout <
= SCTP_EVENT_TIMEOUT_MAX
)
return sctp_timer_tbl[id.timeout];
return "unknown_timer";
}