]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Zero-clear reserved fields of PCM status ioctl in compat mode
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Oct 2014 11:42:19 +0000 (12:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Oct 2014 11:45:53 +0000 (12:45 +0100)
commit55989c585614119fd468f2f53e622d8245ce007c
tree68e3556e0e4018ba71d08c2624dd4ae7595db28c
parent3856c14d151776da9055b082bc859ab31b81c697
ALSA: pcm: Zero-clear reserved fields of PCM status ioctl in compat mode

In compat mode, we copy each field of snd_pcm_status struct but don't
touch the reserved fields, and this leaves uninitialized values
there.  Meanwhile the native ioctl does zero-clear the whole
structure, so we should follow the same rule in compat mode, too.

Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_compat.c