diff options
| author | Alex Williamson <[email protected]> | 2017-11-03 16:50:31 +0000 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2017-11-03 16:50:31 +0000 |
| commit | 07d1c91b6c649705fdd9acf58001071845ecf068 (patch) | |
| tree | 24218f13c7107d4079bbc0dc556aedf6a19d182f /net/unix/af_unix.c | |
| parent | Merge branches 'iommu/fixes', 'arm/omap', 'arm/exynos', 'x86/amd', 'x86/vt-d'... (diff) | |
| download | kernel-07d1c91b6c649705fdd9acf58001071845ecf068.tar.gz kernel-07d1c91b6c649705fdd9acf58001071845ecf068.zip | |
iommu/amd: Fix alloc_irq_index() increment
On an is_allocated() interrupt index, we ALIGN() the current index and
then increment it via the for loop, guaranteeing that it is no longer
aligned for alignments >1. We instead need to align the next index,
to guarantee forward progress, moving the increment-only to the case
where the index was found to be unallocated.
Fixes: 37946d95fc1a ('iommu/amd: Add align parameter to alloc_irq_index()')
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
