summaryrefslogtreecommitdiff
path: root/net/sctp/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/debug.c')
-rw-r--r--net/sctp/debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/debug.c b/net/sctp/debug.c
index 449c424eff3a..aa8340373af7 100644
--- a/net/sctp/debug.c
+++ b/net/sctp/debug.c
@@ -154,6 +154,7 @@ const char *sctp_pname(const sctp_subtype_t id)
static const char *sctp_other_tbl[] = {
"NO_PENDING_TSN",
+ "ICMP_PROTO_UNREACH",
};
/* Lookup "other" debug name. */
@@ -161,7 +162,7 @@ const char *sctp_oname(const sctp_subtype_t id)
{
if (id.other < 0)
return "illegal 'other' event";
- if (id.other < SCTP_EVENT_OTHER_MAX)
+ if (id.other <= SCTP_EVENT_OTHER_MAX)
return sctp_other_tbl[id.other];
return "unknown 'other' event";
}