Shuming Fan f69a10f84c
ASoC: rt711-sdca: fix kernel NULL pointer dereference when IO error
The initial settings will be written before the codec probe function.
But, the rt711->component doesn't be assigned yet.
If IO error happened during initial settings operations, it will cause the kernel panic.
This patch changed component->dev to slave->dev to fix this issue.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20220621090719.30558-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-06-21 13:15:33 +01:00
..
2021-04-20 17:25:51 +01:00
2022-05-23 16:03:04 +02:00
2022-05-23 16:03:04 +02:00
2022-05-04 15:31:20 +01:00
2021-03-31 18:00:38 +01:00
2022-05-04 15:30:32 +01:00
2022-04-26 15:13:40 +01:00
2018-04-26 12:44:15 +01:00
2021-10-02 01:31:58 +01:00
2020-05-07 13:18:04 +01:00
2019-07-26 13:10:09 +01:00
2022-05-04 15:30:32 +01:00
2022-01-28 15:59:20 +00:00
2021-12-06 10:04:05 +01:00
2021-12-06 10:04:05 +01:00
2018-06-01 12:05:30 +01:00
2020-07-20 15:34:29 +01:00
2022-06-21 13:15:31 +01:00
2020-10-02 21:05:29 +01:00
2022-05-09 19:04:36 +01:00
2022-05-04 15:30:32 +01:00