git: DragonFly_RELEASE_4_2 kernel/hda: Add missing != NULL check around kfree().

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Jul 8 01:57:06 PDT 2015


commit d5eb99dbe1d45d519179d414f13324fc296ef787
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/d5eb99dbe1d45d519179d414f13324fc296ef787


-- 
DragonFly BSD source repository



More information about the Commits mailing list