Author: np
Date: Wed Mar 31 00:22:58 2010
New Revision: 205946
URL: http://svn.freebsd.org/changeset/base/205946
Log:
Do not attempt to retrieve interrupt information before it is available.
MFC after: 3 days
Modified:
head/sys/dev/cxgb/cxgb_main.c
Modified: head/sys/dev/cxgb/cxgb_main.c
==============================================================================
--- head/sys/dev/cxgb/cxgb_main.c Wed Mar 31 00:21:56 2010
(r205945)
+++ head/sys/dev/cxgb/cxgb_main.c Wed Mar 31 00:22:58 2010
(r205946)
@@ -2715,7 +2715,9 @@ cxgb_extension_ioctl(struct cdev *dev, u
t->cong_thres = q->cong_thres;
t->qnum = i;
- if (sc->flags & USING_MSIX)
+ if ((sc->flags & FULL_INIT_DONE) == 0)
+ t->vector = 0;
+ else if (sc->flags & USING_MSIX)
t->vector = rman_get_start(sc->msix_irq_res[i]);
else
t->vector = rman_get_start(sc->irq_res);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"