ALSA: hda - Fix oops caused by recent commit "Fix internal mic for Lenovo Ideapad...
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 10 Apr 2012 11:05:29 +0000 (13:05 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 30 Oct 2012 23:26:28 +0000 (23:26 +0000)
commit810352f7bc7ee8788c89660bec3b7790e1c215bc
treede3d4eb2940f421d3f3612e41c26645788878cef
parenta8cfa724f6059e312e7a10f3116f4d028842d73c
ALSA: hda - Fix oops caused by recent commit "Fix internal mic for Lenovo Ideapad U300s"

commit 83b0c6ba999643ee8ad6329f26e1cdc870e1a920 upstream.

Make sure we don't dereference the "quirk" pointer when it is null.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/pci/hda/patch_conexant.c