Do not attempt to retrieve interrupt information before it is available.

MFC after:	3 days
This commit is contained in:
Navdeep Parhar 2010-03-31 00:22:58 +00:00
parent 83179d3907
commit 1d609d51f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205946

View File

@ -2715,7 +2715,9 @@ cxgb_extension_ioctl(struct cdev *dev, unsigned long cmd, caddr_t data,
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);