Skip to content

Commit d8f0e58

Browse files
brooniegregkh
authored andcommitted
ASoC: Don't use wm8994->control_data in wm8994_readable_register()
commit 8eeea52 upstream. The field is no longer initialised so this will crash if running on wm8958. Reported-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent cf80307 commit d8f0e58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/soc/codecs/wm8994.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static int wm8994_retune_mobile_base[] = {
5656
static int wm8994_readable(struct snd_soc_codec *codec, unsigned int reg)
5757
{
5858
struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
59-
struct wm8994 *control = wm8994->control_data;
59+
struct wm8994 *control = codec->control_data;
6060

6161
switch (reg) {
6262
case WM8994_GPIO_1:

0 commit comments

Comments
 (0)