aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKuninori Morimoto <[email protected]>2017-08-21 06:31:57 +0000
committerVinod Koul <[email protected]>2017-08-25 12:27:07 +0530
commit5e857047ba1e748002088bf44b6b0873664d9567 (patch)
treeef8928af99dc4d0a3a0e4637ab0369e5e76b743e /tools/perf/scripts/python/export-to-postgresql.py
parent87c56dcba4573441b5cc4b42ecbb35188fee8f04 (diff)
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 <[email protected]> Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions