ALSA: hda: fix kstrdup return value
authorHeloise NH <kernelpatch_update@163.com>
Fri, 17 Jul 2015 01:42:06 +0000 (09:42 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Jul 2015 12:56:19 +0000 (14:56 +0200)
commit6986a0e2556df3dfb54c624b50b02936bd1e00ef
treea7f0c62d91149f9227b46c9480ee8d40f7f89091
parent3ce095c16263630dde46d6051854073edaacf3d7
ALSA: hda: fix kstrdup return value

In kstrdup we should return -ENOMEM when it reports an
memory allocation failure, while the -ENODEV is referred
to a failure in finding the cpu node in the device tree.

Signed-off-by: Heloise NH <kernelpatch_update@163.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c