Commit b72ef9af authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Takashi Iwai <tiwai@suse.de>

PCM Midlevel
don't call kfree with NULL pointer (constraint rules is not always allocated).
parent 84166cbf
......@@ -819,7 +819,8 @@ void snd_pcm_release_substream(snd_pcm_substream_t *substream)
runtime->private_free(runtime);
snd_free_pages((void*)runtime->status, PAGE_ALIGN(sizeof(snd_pcm_mmap_status_t)));
snd_free_pages((void*)runtime->control, PAGE_ALIGN(sizeof(snd_pcm_mmap_control_t)));
kfree(runtime->hw_constraints.rules);
if (runtime->hw_constraints.rules)
kfree(runtime->hw_constraints.rules);
kfree(runtime);
substream->runtime = NULL;
substream->pstr->substream_opened--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment