diff options
| author | 2012-03-27 16:43:11 +0800 | |
|---|---|---|
| committer | 2012-04-10 09:18:16 -0700 | |
| commit | 0d05568ac79bfc595f1eadc3e0fd7a20a45f7b69 (patch) | |
| tree | d15134080908344c9518d936b98a31f511aa4892 /scripts/const_structs.checkpatch | |
| parent | Staging: vt6655-6: check keysize before memcpy() (diff) | |
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>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
