Commit 74f53f9a authored by Jon Grimm's avatar Jon Grimm Committed by Sridhar Samudrala

[SCTP] Fix panic on close()

TCP-style changes took out the check against valid address in
the statemachine debugging code.  Not good, as this protects
us from accidentally touching the dead or dying association struct.
parent e5e956d0
......@@ -105,7 +105,8 @@ static void sctp_cmd_new_state(sctp_cmd_seq_t *, sctp_association_t *,
#define DEBUG_POST_SFX \
SCTP_DEBUG_PRINTK("sctp_do_sm post sfx: error %d, asoc %p[%s]\n", \
error, asoc, \
sctp_state_tbl[asoc?asoc->state:SCTP_STATE_CLOSED])
sctp_state_tbl[(asoc && sctp_id2assoc(ep->base.sk, \
sctp_assoc2id(asoc)))?asoc->state:SCTP_STATE_CLOSED])
/*
* This is the master state machine processing function.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment