diff options
author | Ira Snyder <iws@ovro.caltech.edu> | 2009-05-15 09:59:46 -0700 |
---|---|---|
committer | Li Yang <leoli@freescale.com> | 2009-05-22 16:54:42 +0800 |
commit | 2e077f8e8337e52eef3c39c24c31e103b11a0326 (patch) | |
tree | 686c9965c8304f5b6d59d3538e989674467ee129 /drivers/scsi/qla4xxx | |
parent | 776c8943f2766f2819fafd88fdfbaf418ecd6e41 (diff) |
fsldma: fix memory leak on error path in fsl_dma_prep_memcpy()
When preparing a memcpy operation, if the kernel fails to allocate memory
for a link descriptor after the first link descriptor has already been
allocated, then some memory will never be released. Fix the problem by
walking the list of allocated descriptors backwards, and freeing the
allocated descriptors back into the DMA pool.
Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Li Yang <leoli@freescale.com>
Diffstat (limited to 'drivers/scsi/qla4xxx')
0 files changed, 0 insertions, 0 deletions