mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Do not attempt to retrieve interrupt information before it is available.
MFC after: 3 days
This commit is contained in:
parent
83179d3907
commit
1d609d51f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205946
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user