[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/flask: fix crash on debugkey "i"
>>> On 13.02.13 at 16:54, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> wrote: > The IRQs beyond nr_static_irqs do not all have an associated PCI device, > so only query the device SID if pci is not NULL. > > Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> > --- > xen/xsm/flask/hooks.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c > index 85d009c..29a78dd 100644 > --- a/xen/xsm/flask/hooks.c > +++ b/xen/xsm/flask/hooks.c > @@ -110,7 +110,7 @@ static int get_irq_sid(int irq, u32 *sid, struct > avc_audit_data *ad) > } > return security_irq_sid(irq, sid); > } > - if ( desc->msi_desc ) { > + if ( desc->msi_desc && desc->msi_desc->dev ) { > struct pci_dev *dev = desc->msi_desc->dev; > u32 sbdf = (dev->seg << 16) | (dev->bus << 8) | dev->devfn; > if (ad) { > -- > 1.8.1.2 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxx > http://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |