X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsctp%2Fsm_statetable.c;h=70a91ece3c49444de91b41b7db7f4b486a16e7de;hb=9cbcbf4e010ec253df686257f99c819da9b895da;hp=523071c7902fbb5a163f1418c17e85fcb0d4f503;hpb=2d56d3c43cc97ae48586745556f5a5b564d61582;p=linux-2.6 diff --git a/net/sctp/sm_statetable.c b/net/sctp/sm_statetable.c index 523071c790..70a91ece3c 100644 --- a/net/sctp/sm_statetable.c +++ b/net/sctp/sm_statetable.c @@ -960,7 +960,7 @@ static const sctp_sm_table_entry_t *sctp_chunk_event_lookup(sctp_cid_t cid, if (state > SCTP_STATE_MAX) return &bug; - if (cid >= 0 && cid <= SCTP_CID_BASE_MAX) + if (cid <= SCTP_CID_BASE_MAX) return &chunk_event_table[cid][state]; if (sctp_prsctp_enable) {