Linus Walleij aa9d53380e 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 <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06 22:06:29 -08:00
..
2014-03-06 22:06:28 -08:00
2013-12-12 22:43:41 -08:00
2013-08-25 16:43:45 +05:30
2013-12-04 11:22:05 +05:30
2013-01-07 17:36:37 +01:00
2013-12-13 00:57:03 -08:00
2013-12-12 22:43:41 -08:00
2013-12-12 22:43:41 -08:00
2013-10-31 22:36:13 +05:30
2012-09-01 08:57:12 -07:00
2013-12-18 12:53:43 -08:00
2013-09-02 11:59:58 +05:30
2013-12-12 22:43:41 -08:00