summaryrefslogtreecommitdiff
path: root/drivers/gpu/ipu-v3/ipu-common.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2018-03-22 18:22:42 +0300
committerJoerg Roedel <jroedel@suse.de>2018-03-29 11:38:17 +0300
commit29d049be9438278c47253a74cf8d0ddf36bd5d68 (patch)
treef793b2c78101d960183bca9fdb8e6f4a2b373a5b /drivers/gpu/ipu-v3/ipu-common.c
parent2cd1083d79a0a8c223af430ca97884c28a1e2fc0 (diff)
downloadlinux-29d049be9438278c47253a74cf8d0ddf36bd5d68.tar.xz
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 <bigeasy@linutronix.de> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/gpu/ipu-v3/ipu-common.c')
0 files changed, 0 insertions, 0 deletions