Date:2014-05-11 01:27:23 (6 years 3 months ago)
Author:Apelete Seketeli
Commit:5f7c67229b1128efe8caa257d6a1413be60dcc95
Message:dma: jz4740: complete descriptor before marking it null

In order to call vchan_cookie_complete() on DMA descriptor, we need a
valid address to be dereferenced.
This fixes the sequence where descriptor is marked NULL before being
dereferenced for completion, thus causing a kernel paging request
fault.

Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
Files: drivers/dma/dma-jz4740.c (1 diff)

Change Details

drivers/dma/dma-jz4740.c
363363        } else {
364364            if (chan->next_sg == chan->desc->num_sgs) {
365365                list_del(&chan->desc->vdesc.node);
366                chan->desc = NULL;
367366                vchan_cookie_complete(&chan->desc->vdesc);
367                chan->desc = NULL;
368368            }
369369        }
370370    }

Archive Download the corresponding diff file



interactive