summaryrefslogtreecommitdiffstats
path: root/drivers/dma/amba-pl08x.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-08-21 06:31:57 +0000
committerVinod Koul <vinod.koul@intel.com>2017-08-25 12:27:07 +0530
commit5e857047ba1e748002088bf44b6b0873664d9567 (patch)
treeef8928af99dc4d0a3a0e4637ab0369e5e76b743e /drivers/dma/amba-pl08x.c
parent87c56dcba4573441b5cc4b42ecbb35188fee8f04 (diff)
downloadop-kernel-dev-5e857047ba1e748002088bf44b6b0873664d9567.zip
op-kernel-dev-5e857047ba1e748002088bf44b6b0873664d9567.tar.gz
dmaengine: rcar-dmac: initialize all data before registering IRQ handler
Anton Volkov noticed that engine->dev is NULL before of_dma_controller_register() in probe. Thus there might be a NULL pointer dereference in rcar_dmac_chan_start_xfer while accessing chan->chan.device->dev which is equal to (&dmac->engine)->dev. On same reason, same and similar things will happen if we didn't initialize all necessary data before calling register irq function. To be more safety code, this patch initialize all necessary data before calling register irq function. Reported-by: Anton Volkov <avolkov@ispras.ru> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/amba-pl08x.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud