git: kernel/hda: Add missing != NULL check around kfree().
Sascha Wildner
swildner at crater.dragonflybsd.org
Wed Jul 8 01:57:02 PDT 2015
commit 277c37c1ad8662a765510ab1e309236811eb5db1
Author: Sascha Wildner <saw at online.de>
Date: Wed Jul 8 10:55:42 2015 +0200
kernel/hda: Add missing != NULL check around kfree().
If hdac_get_capabilities() fails, sc->streams has not been allocated, so
check for != NULL before trying to free it in the cleanup.
Reported-by: Rimvydas Jasinskas <rimvydas.jasinskas at gmail.com>
Summary of changes:
sys/dev/sound/pci/hda/hdac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/277c37c1ad8662a765510ab1e309236811eb5db1
--
DragonFly BSD source repository
More information about the Commits
mailing list