SPARC64: Fix memory corruption in pci_4u_free_consistent()
commitec333318b748e4f4ac3679a197620503b6d19d20
authorDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2007 09:41:04 +0000 (9 10:41 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 9 Mar 2007 09:41:04 +0000 (9 10:41 +0100)
tree4dc983bf23645171c93af60e8c41dc459103fcd0
parent0096623513107562ede3254df8d50d86474e5a7a
SPARC64: Fix memory corruption in pci_4u_free_consistent()

The second argument to free_npages() was being incorrectly
calculated, which would thus access far past the end of the
arena->map[] bitmap.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
arch/sparc64/kernel/pci_iommu.c