Skip to content

Commit

Permalink
ALSA: hda: fix the missing ptr initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vinod Koul authored and Takashi Iwai committed May 8, 2016
1 parent 89e448b commit 94e9080
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/hda/ext/hdac_ext_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 94e9080

Please sign in to comment.