Merge "ASoC: msm: q6dspv2: fix potentional information leak"

This commit is contained in:
Linux Build Service Account 2017-01-12 16:11:51 -08:00 committed by Gerrit - the friendly Code Review server
commit 18ebb80fcc

View file

@ -313,12 +313,12 @@ static void config_debug_fs_write(struct audio_buffer *ab)
}
static void config_debug_fs_init(void)
{
out_buffer = kmalloc(OUT_BUFFER_SIZE, GFP_KERNEL);
out_buffer = kzalloc(OUT_BUFFER_SIZE, GFP_KERNEL);
if (out_buffer == NULL) {
pr_err("%s: kmalloc() for out_buffer failed\n", __func__);
goto outbuf_fail;
}
in_buffer = kmalloc(IN_BUFFER_SIZE, GFP_KERNEL);
in_buffer = kzalloc(IN_BUFFER_SIZE, GFP_KERNEL);
if (in_buffer == NULL) {
pr_err("%s: kmalloc() for in_buffer failed\n", __func__);
goto inbuf_fail;