dmaengine: rcar-dmac: Fix oops due to unintialized list in error ISR
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 27 Jan 2015 13:58:53 +0000 (15:58 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Feb 2015 04:03:33 +0000 (09:33 +0530)
commitf7638c904bf87eac5bd823ef2debaef8251686b8
tree4e9d7587f6068af7623dd94ebe3d068985b1c31a
parentf39150720edcc9e6f5d61fd1ed6044eab1e5fa0d
dmaengine: rcar-dmac: Fix oops due to unintialized list in error ISR

The error interrupt handler stops and reinitializes all channels. This
causes a crash for channels that have never been used, as their
descriptor lists are uninitialized. Fix it by initializing the
descriptor lists at probe time.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-dmac.c