mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
ALSA: hda: fix possible NULL dereference
After a for-loop was replaced by list_for_each_entry, see Commitbbbc7e8502("ALSA: hda - Allocate hda_pcm objects dynamically"), Commit751e221689("ALSA: hda: fix possible null dereference"), a possible NULL pointer dereference has been introduced; this patch adds the NULL check on pcm->pcm, while leaving a potentially superfluous check on pcm itself untouched. Signed-off-by: Markus Osterhoff <linux-kernel@k-raum.org> Cc: <stable@vger.kernel.org> #v4.1+ Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f6b28e4ded
commit
c7e69ae6b4
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue