diff options
| author | 2022-06-06 15:37:50 -0500 | |
|---|---|---|
| committer | 2022-06-24 16:21:33 +0100 | |
| commit | 0484271ab0ce50649329fa9dc23c50853c5b26a4 (patch) | |
| tree | 16c98797366fda4531ef6f68dba0cc774c690d90 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | ASoC: rt711: fix calibrate mutex initialization (diff) | |
| download | linux-dev-0484271ab0ce50649329fa9dc23c50853c5b26a4.tar.xz linux-dev-0484271ab0ce50649329fa9dc23c50853c5b26a4.zip | |
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>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
