iommu/amd: Fix error return code in irq_remapping_alloc()
authorWei Yongjun <weiyj.lk@gmail.com>
Thu, 28 Jul 2016 02:10:26 +0000 (02:10 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 9 Aug 2016 15:18:45 +0000 (17:18 +0200)
commit517abe495df7279f3a45ae01ed709e07d384309e
treec72f18ac1d9126d8c146def90ed729165c814a1a
parenta5604f260e68a45510ef773ce36ce301d1f6d102
iommu/amd: Fix error return code in irq_remapping_alloc()

Fix to return a negative error code from the alloc_irq_index() error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c