drm/radeon: use post-decrement in error handling

[ Upstream commit bc3f5d8c4c ]

We need to use post-decrement to get the pci_map_page undone also for
i==0, and to avoid some very unpleasant behaviour if pci_map_page
failed already at i==0.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Rasmus Villemoes 2016-02-15 19:41:47 +01:00 • committed by Sasha Levin
commit 1a82e89958