ARM: dmabounce: fix map_single() error return value
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 22:24:21 +0000 (23:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 22:24:21 +0000 (23:24 +0100)
commit178783622ce0fd629fad21b33b8f8f56b64c5e45
treede3c5133acd86cca859bd24b49d79e2040eeb714
parentca56a95eedcc95f8fea7b49c87565cd961d74fe2
ARM: dmabounce: fix map_single() error return value

When map_single() is unable to obtain a safe buffer, we must return
the dma_addr_t error value, which is ~0 rather than 0.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/dmabounce.c