kernel/hda: Add missing != NULL check around kfree().
commit277c37c1ad8662a765510ab1e309236811eb5db1
authorSascha Wildner <saw@online.de>
Wed, 8 Jul 2015 08:55:42 +0000 (8 10:55 +0200)
committerSascha Wildner <saw@online.de>
Wed, 8 Jul 2015 08:55:42 +0000 (8 10:55 +0200)
tree355d402cfe08c0c5fb2b084d35479bf884fdd054
parent6a4842658f1a609938dc8ddb6bcb5cc31022453e
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@gmail.com>
sys/dev/sound/pci/hda/hdac.c