瀏覽代碼

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 <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Vinod Koul 9 年之前
父節點
當前提交
94e9080ce2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sound/hda/ext/hdac_ext_bus.c

+ 1 - 0
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);