Patch "drm/radeon: use post-decrement in error handling" has been added to the 3.10-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/radeon: use post-decrement in error handling
to the 3.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-radeon-use-post-decrement-in-error-handling.patch
and it can be found in the queue-3.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
bc3f5d8c4ca01555820617eb3b6c0857e4df710dMon Sep 17 00:00:00 2001
From: Rasmus Villemoes <[email protected]>
Date: Mon, 15 Feb 2016 19:41:47 +0100
Subject: drm/radeon: use post-decrement in error handling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Rasmus Villemoes <[email protected]>
commit bc3f5d8c4ca01555820617eb3b6c0857e4df710d upstream.
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.
--- drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_ttm.c +1 -1
@@ -619,7 +619,7 @@ static int radeon_ttm_tt_populate(struct0 ,PAGE_SIZE , PCI_DMA_BIDIRECTIONAL);if (pci_dma_mapping_error (rdev->pdev, gtt->ttm.dma_address[i])) { -while (--i) { +while (i--) {pci_unmap_page (rdev->pdev, gtt->ttm.dma_address[i],PAGE_SIZE ,PCI_DMA_BIDIRECTIONAL ); gtt->ttm.dma_address[i] =0 ;
Patches currently in stable-queue which might be from [email protected] are
queue-3.10/drm-radeon-use-post-decrement-in-error-handling.patch