From: Vinod Koul Date: Thu, 5 May 2016 05:54:42 +0000 (+0530) Subject: ALSA: hda: fix the missing ptr initialization X-Git-Tag: v4.7-rc1~116^2~4^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94e9080ce22d9fb7c0a4361a5890b2c6affc9b1b;p=thirdparty%2Fkernel%2Flinux.git ALSA: hda: fix the missing ptr initialization ebus is a member of extended device and was never initialized, so do this at device creation. Signed-off-by: Jeeja KP Signed-off-by: Vinod Koul Signed-off-by: Takashi Iwai --- diff --git a/sound/hda/ext/hdac_ext_bus.c b/sound/hda/ext/hdac_ext_bus.c index 2433f7c814728..64de0a3d6d93c 100644 --- a/sound/hda/ext/hdac_ext_bus.c +++ b/sound/hda/ext/hdac_ext_bus.c @@ -144,6 +144,7 @@ int snd_hdac_ext_bus_device_init(struct hdac_ext_bus *ebus, int addr) if (!edev) return -ENOMEM; hdev = &edev->hdac; + edev->ebus = ebus; snprintf(name, sizeof(name), "ehdaudio%dD%d", ebus->idx, addr);