Commit 9bd77a9
spi: fsl-dspi: fix wrong pointer in suspend/resume
Since commit 530b5af ("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: 530b5af ("spi: fsl-dspi: fix use-after-free in remove path")
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20201103020546.1822-1-qiang.zhao@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 5e31ba0 commit 9bd77a9
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | | - | |
1084 | | - | |
| 1083 | + | |
1085 | 1084 | | |
1086 | 1085 | | |
1087 | 1086 | | |
1088 | | - | |
| 1087 | + | |
1089 | 1088 | | |
1090 | 1089 | | |
1091 | 1090 | | |
| |||
1095 | 1094 | | |
1096 | 1095 | | |
1097 | 1096 | | |
1098 | | - | |
1099 | | - | |
| 1097 | + | |
1100 | 1098 | | |
1101 | 1099 | | |
1102 | 1100 | | |
1103 | 1101 | | |
1104 | 1102 | | |
1105 | 1103 | | |
1106 | 1104 | | |
1107 | | - | |
| 1105 | + | |
1108 | 1106 | | |
1109 | 1107 | | |
1110 | 1108 | | |
| |||
0 commit comments