ALSA: memalloc: Initialize all fields of snd_dma_buffer properly
authorTakashi Iwai <tiwai@suse.de>
Mon, 15 Jun 2020 16:00:43 +0000 (18:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Jun 2020 16:01:42 +0000 (18:01 +0200)
commit28e60dbb83f76b18acade913dfdb029cd908c9b0
treefc8191cf2feb2257a8ee5fe85b9d34a1dee4cfab
parentd955dab33af4ebff0f6c486da216ebbf590eb7e4
ALSA: memalloc: Initialize all fields of snd_dma_buffer properly

Some fields in snd_dma_buffer aren't touched in snd_dma_alloc_pages()
and might be left uninitialized.  Let's clear all fields properly, so
that we can use a NULL check (e.g. dmab->private_data) as conditional
in a later patch.

Link: https://lore.kernel.org/r/20200615160045.2703-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c