Skip to content
Unverified Commit 9bd77a9c authored by Zhao Qiang's avatar Zhao Qiang Committed by Mark Brown
Browse files

spi: fsl-dspi: fix wrong pointer in suspend/resume

Since commit 530b5aff ("spi: fsl-dspi: fix use-after-free in
remove path"), this driver causes a "NULL pointer dereference"
in dspi_suspend/resume.
This is because since this commit, the drivers private data point to
"dspi" instead of "ctlr", the codes in suspend and resume func were
not modified correspondly.

Fixes: 530b5aff

 ("spi: fsl-dspi: fix use-after-free in remove path")
Signed-off-by: default avatarZhao Qiang <qiang.zhao@nxp.com>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20201103020546.1822-1-qiang.zhao@nxp.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5e31ba0c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment