ALSA: hda/jack - Fix NULL-dereference at probing
authorTakashi Iwai <tiwai@suse.de>
Fri, 11 Nov 2011 16:53:03 +0000 (17:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Nov 2011 10:14:04 +0000 (11:14 +0100)
commitcfc7c9d307b6a3557e333f960218d344d3a70ce7
tree1da5dcddefe6720aa4385a239e02f737124a188b
parentd1cb620081f51c78cf95224efb593a886875078f
ALSA: hda/jack - Fix NULL-dereference at probing

At probing time, the elements that aren't assigned to kctl or jack may
be called.  Need proper NULL-checks.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_jack.c