From: Linus Walleij Date: Thu, 13 Feb 2014 09:39:01 +0000 (+0100) Subject: dma: ste_dma40: don't dereference free:d descriptor X-Git-Tag: v3.2.56~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74f925dea76124060a2021460a26c6ddc815bfff;p=pandora-kernel.git dma: ste_dma40: don't dereference free:d descriptor commit e9baa9d9d520fb0e24cca671e430689de2d4a4b2 upstream. It appears that in the DMA40 driver the DMA tasklet will very often dereference memory for a descriptor just free:d from the DMA40 slab. Nothing happens because no other part of the driver has yet had a chance to claim this memory, but it's really nasty to dereference free:d memory, so let's check the flag before the descriptor is free and store it in a bool variable. Reported-by: Dan Carpenter Signed-off-by: Linus Walleij Signed-off-by: Vinod Koul Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed