lkml.org 
[lkml]   [2022]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [patch 15/20] genirq/msi: Provide new domain id allocation functions
Date
> From: Thomas Gleixner <tglx@linutronix.de>
> Sent: Friday, November 18, 2022 8:26 PM
>
> >> + xa_for_each_range(xa, idx, desc, ctrl->first + base, ctrl->last + base) {
> >> + if (!msi_desc_match(desc, MSI_DESC_NOTASSOCIATED))
> >> + continue;
> >> +
> >> + /* This should return -ECONFUSED... */
> >> + if (WARN_ON_ONCE(allocated >= ctrl->nirqs))
> >> + return -EINVAL;
> >> +
> >
> > why is "==" an error?
>
> because if you get here _after_ having allocated all interrupts already
> then you have more descriptors than what you want to allocate, which
> should never happen right?

yes

\
 
 \ /
  Last update: 2022-11-21 04:26    [W:1.885 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site