ALSA: hdac: Fix size allocation for ext device allocation
authorVinod Koul <vinod.koul@intel.com>
Sun, 23 Aug 2015 06:22:49 +0000 (11:52 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sun, 23 Aug 2015 07:43:25 +0000 (09:43 +0200)
commite57690b1aeb208642d00f9b378830b26c9585caf
tree1ea5260e48fc3c9d88cb464fb7fc5e55be1b05ae
parenta3b3a9db5d26bef1e62054c95c3d7701de5110d5
ALSA: hdac: Fix size allocation for ext device allocation

While creating hdac_ext_device, we used hdev for sizeof insteadof
edev, which resulted in eventual crash of the system Fix the size
here

Fixes: a512f5611646 ('ALSA: hdac: add hdac extended device')
Reported-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/ext/hdac_ext_bus.c