svn commit: r239528 - head/sys/dev/cxgbe/tom
Navdeep Parhar
np at FreeBSD.org
Tue Aug 21 19:45:20 UTC 2012
Author: np
Date: Tue Aug 21 19:45:19 2012
New Revision: 239528
URL: http://svn.freebsd.org/changeset/base/239528
Log:
Avoid a NULL pointer dereference.
Modified:
head/sys/dev/cxgbe/tom/t4_cpl_io.c
Modified: head/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_cpl_io.c Tue Aug 21 19:39:09 2012 (r239527)
+++ head/sys/dev/cxgbe/tom/t4_cpl_io.c Tue Aug 21 19:45:19 2012 (r239528)
@@ -1007,8 +1007,8 @@ do_abort_req(struct sge_iq *iq, const st
CTR6(KTR_CXGBE,
"%s: tid %d (%s), toep_flags 0x%x, inp_flags 0x%x, status %d",
- __func__, tid, tcpstates[tp->t_state], toep->flags, inp->inp_flags,
- cpl->status);
+ __func__, tid, tp ? tcpstates[tp->t_state] : "no tp", toep->flags,
+ inp->inp_flags, cpl->status);
/*
* If we'd initiated an abort earlier the reply to it is responsible for
More information about the svn-src-head
mailing list