Skip to content

Commit befd780

Browse files
committed
genirq/msi: Use MSI_DESC_ALL in msi_add_simple_msi_descs()
There are no associated MSI descriptors in the requested range when the MSI descriptor allocation fails. Use MSI_DESC_ALL as the filter which prepares the next step to get rid of the filter for freeing. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Ashok Raj <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1c82f0d commit befd780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static int msi_add_simple_msi_descs(struct device *dev, unsigned int index, unsi
120120
fail_mem:
121121
ret = -ENOMEM;
122122
fail:
123-
msi_free_msi_descs_range(dev, MSI_DESC_NOTASSOCIATED, index, last);
123+
msi_free_msi_descs_range(dev, MSI_DESC_ALL, index, last);
124124
return ret;
125125
}
126126

0 commit comments

Comments
 (0)