android_kernel_lge_bullhead/drivers/rapidio/devices
Alexandre Bounine 7bfa5bfd88 rapidio/tsi721_dma: fix failure to obtain transaction descriptor
commit 0193ed8225e1a79ed64632106ec3cc81798cb13c upstream.

This is a bug fix for the situation when function tsi721_desc_get() fails
to obtain a free transaction descriptor.

The bug usually results in a memory access crash dump when data transfer
scatter-gather list has more entries than size of hardware buffer
descriptors ring.  This fix ensures that error is properly returned to a
caller instead of an invalid entry.

This patch is applicable to kernel versions starting from v3.5.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com>
Cc: Stef van Os <stef.van.os@prodrive-technologies.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-08-07 14:30:25 -07:00
..
Kconfig
Makefile rapidio/tsi721: add DMA engine support 2012-05-31 17:49:31 -07:00
tsi721.c rapidio/tsi721: fix bug in MSI interrupt handling 2013-05-24 16:22:51 -07:00
tsi721.h rapidio/tsi721: fix tasklet termination in dma channel release 2014-03-23 21:38:09 -07:00
tsi721_dma.c rapidio/tsi721_dma: fix failure to obtain transaction descriptor 2014-08-07 14:30:25 -07:00