Pierre-Louis Bossart 05ba4c00fa
ASoC: rt7*-sdw: harden jack_detect_handler
Realtek headset codec drivers typically check if the card is
instantiated before proceeding with the jack detection.

The rt700, rt711 and rt711-sdca are however missing a check on the
card pointer, which can lead to NULL dereferences encountered in
driver bind/unbind tests.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220606203752.144159-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-06-07 20:37:30 +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-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
2020-10-02 21:05:29 +01:00
2022-05-09 19:04:36 +01:00
2022-05-04 15:30:32 +01:00
2022-06-07 20:37:12 +01:00