linux/drivers/staging/rts_pstor
wwang 0d05568ac7 staging:rts_pstor:Fix possible panic by NULL pointer dereference
rtsx_transport.c (rtsx_transfer_sglist_adma_partial):
pointer struct scatterlist *sg, which is mapped in dma_map_sg,
is used as an iterator in later transfer operation. It is corrupted and
passed to dma_unmap_sg, thus causing fatal unmap of some erroneous address.
Fix it by duplicating *sg_ptr for iterating.

Signed-off-by: wwang <wei_wang@realsil.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-10 09:18:16 -07:00
..
Kconfig
Makefile
TODO staging: Update TODO for rts5139 and rts_pstor 2012-02-24 12:03:14 -08:00
debug.h
general.c
general.h
ms.c
ms.h
rtsx.c
rtsx.h
rtsx_card.c
rtsx_card.h
rtsx_chip.c
rtsx_chip.h
rtsx_scsi.c
rtsx_scsi.h
rtsx_sys.h
rtsx_transport.c staging:rts_pstor:Fix possible panic by NULL pointer dereference 2012-04-10 09:18:16 -07:00
rtsx_transport.h
sd.c
sd.h
spi.c
spi.h
trace.h
xd.c
xd.h