ASoC: rt5640: Fix NULL dereference on module unload
authorDmitry Osipenko <digetx@gmail.com>
Mon, 6 Jan 2020 01:47:07 +0000 (04:47 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jan 2020 20:44:25 +0000 (20:44 +0000)
commit89b71b3f02d8ae5a08a1dd6f4a2098b7b868d498
treea4e6e345b4245e10dfeb4291c08fd94ec12fe8f6
parentff3b57417012fcc963ec281f5705bed837e4b1ac
ASoC: rt5640: Fix NULL dereference on module unload

The rt5640->jack is NULL if jack is already disabled at the time of
driver's module unloading.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200106014707.11378-1-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5640.c