aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2018-03-22 15:22:42 +0000
committerJoerg Roedel <[email protected]>2018-03-29 08:38:17 +0000
commit29d049be9438278c47253a74cf8d0ddf36bd5d68 (patch)
treef793b2c78101d960183bca9fdb8e6f4a2b373a5b /fs/proc/array.c
parentiommu/amd: Make amd_iommu_devtable_lock a spin_lock (diff)
downloadkernel-29d049be9438278c47253a74cf8d0ddf36bd5d68.tar.gz
kernel-29d049be9438278c47253a74cf8d0ddf36bd5d68.zip
iommu/amd: Return proper error code in irq_remapping_alloc()
In the unlikely case when alloc_irq_table() is not able to return a remap table then "ret" will be assigned with an error code. Later, the code checks `index' and if it is negative (which it is because it is initialized with `-1') and then then function properly aborts but returns `-1' instead `-ENOMEM' what was intended. In order to correct this, I assign -ENOMEM to index. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions