iommu/vt-d: Fix signedness bug in alloc_irte()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 Jan 2014 05:32:36 +0000 (08:32 +0300)
committerJoerg Roedel <joro@8bytes.org>
Thu, 9 Jan 2014 12:05:45 +0000 (13:05 +0100)
commit9f4c7448f46b881119998702530676b3400752a9
tree5ba0df189db07307763a24c6126972ddab6695fb
parent9bdc531ec63bf894c5e3b7b5a766ce342eb2f52e
iommu/vt-d: Fix signedness bug in alloc_irte()

"index" needs to be signed for the error handling to work.  I deleted a
little bit of obsolete cruft related to "index" and "start_index" as
well.

Fixes: 360eb3c5687e ('iommu/vt-d: use dedicated bitmap to track remapping entry allocation status')

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/intel_irq_remapping.c