summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe/ixgbe.c
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2013-07-10 23:14:24 +0000
committerjfv <jfv@FreeBSD.org>2013-07-10 23:14:24 +0000
commit3d6ca818696a442a95d25bfa59bfb62158426f26 (patch)
treeb6c3c3384c82e9439f1ada3fd25891f9c17a9ba0 /sys/dev/ixgbe/ixgbe.c
parent68c057774b7e777ec9e33683d723d86e6b061b8d (diff)
downloadFreeBSD-src-3d6ca818696a442a95d25bfa59bfb62158426f26.zip
FreeBSD-src-3d6ca818696a442a95d25bfa59bfb62158426f26.tar.gz
Fix to a panic found internally, bad pointer during rxeof
processing. Thanks for John Baldwin for catching this. Not clearing the flag member of the rxbuf could result in a NULL mbuf pointer being used. MFC after: 2 days (this needs to get into 9.2!)
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.c')
-rw-r--r--sys/dev/ixgbe/ixgbe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c
index 193ca75..3b645e8 100644
--- a/sys/dev/ixgbe/ixgbe.c
+++ b/sys/dev/ixgbe/ixgbe.c
@@ -3943,6 +3943,7 @@ ixgbe_free_receive_ring(struct rx_ring *rxr)
rxbuf->buf->m_flags |= M_PKTHDR;
m_freem(rxbuf->buf);
rxbuf->buf = NULL;
+ rxbuf->flag = 0;
}
}
}
OpenPOWER on IntegriCloud