linux/drivers/rapidio
Alexandre Bounine 9af29151ca rapidio/tsi721_dma: fix failure to obtain transaction descriptor
commit 0193ed8225 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:52:37 -07:00
..
devices rapidio/tsi721_dma: fix failure to obtain transaction descriptor 2014-08-07 14:52:37 -07:00
switches Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2013-07-13 14:52:21 -07:00
Kconfig rapidio: convert switch drivers to modules 2013-07-03 16:08:04 -07:00
Makefile rapidio: add modular build option for the subsystem core 2013-07-03 16:08:05 -07:00
rio-access.c [RAPIDIO] Add RapidIO multi mport support 2008-04-29 19:40:28 +10:00
rio-driver.c rapidio: convert bus code to use dev_groups 2013-10-16 18:36:03 -07:00
rio-scan.c rapidio: change endpoint device name format 2013-07-03 16:08:05 -07:00
rio-sysfs.c rapidio: convert bus code to use dev_groups 2013-10-16 18:36:03 -07:00
rio.c rapidio: fix use after free in rio_unregister_scan() 2013-07-31 14:41:02 -07:00
rio.h rapidio: convert bus code to use dev_groups 2013-10-16 18:36:03 -07:00