ALSA: cs46xx: Potential NULL dereference in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 8 Jan 2019 07:43:30 +0000 (10:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:01:04 +0000 (10:01 +0100)
commit89c7ba90185dc9af684a17027300899e189039cd
treea2290a783064d9e459a1f000bdca523df4db4f82
parenta3c16e5f99c7805e3c76d94c4e1575fce11ae9d5
ALSA: cs46xx: Potential NULL dereference in probe

commit 1524f4e47f90b27a3ac84efbdd94c63172246a6f upstream.

The "chip->dsp_spos_instance" can be NULL on some of the ealier error
paths in snd_cs46xx_create().

Reported-by: "Yavuz, Tuba" <tuba@ece.ufl.edu>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/cs46xx/dsp_spos.c