ALSA: hda: fix possible null dereference
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 2 Apr 2015 11:21:43 +0000 (16:51 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sat, 4 Apr 2015 12:32:16 +0000 (14:32 +0200)
commit751e2216899cb143fe1d5909fe762870faa945f6
treed69612e15878e09eef8498c414c27c360d422ad4
parent382fd7becc409be9cc18dea8e3d53f6d184f9a5c
ALSA: hda: fix possible null dereference

we are dereferencing pcm first then checking pcm. instead now lets put
them in same if condition so that pcm is checked first.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c