]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/msi: Fix the msi bitmap alignment tests
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Oct 2014 08:04:24 +0000 (19:04 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Oct 2014 02:09:32 +0000 (13:09 +1100)
commit463e5b7aade7a2809bd190ea0de190dbe931b3ea
treec211272ee81a84b6134e4754cccd8d5529676a6c
parente82456a6f7e0c80611b3af1038f01df1684f9b63
powerpc/msi: Fix the msi bitmap alignment tests

When we added the alignment tests recently we failed to check they were
actually passing - oops.

They weren't passing, because the bitmap was full. We should also be a
bit more careful when checking the return code, a negative error return
could by divisible by our alignment value.

Fixes: aaeae359c649 ("powerpc/msi: Improve IRQ bitmap allocator")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/msi_bitmap.c