From: Takashi Iwai Date: Tue, 28 Oct 2014 11:42:19 +0000 (+0100) Subject: ALSA: pcm: Zero-clear reserved fields of PCM status ioctl in compat mode X-Git-Tag: v3.2.65~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5955adc323822ffe85c2bfd7c7e1224c1bfaca66;p=pandora-kernel.git ALSA: pcm: Zero-clear reserved fields of PCM status ioctl in compat mode commit 317168d0c766defd14b3d0e9c2c4a9a258b803ee upstream. 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 Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed