ALSA: pcm: Fix structure definition for X32 ABI
authorBaolin Wang <baolin.wang@linaro.org>
Thu, 21 Sep 2017 06:03:29 +0000 (14:03 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 Sep 2017 09:23:48 +0000 (11:23 +0200)
X32 ABI uses the 64bit timespec in addition to 64bit alignment of 64bit
values. We have added compat ABI for these ioctls, but this patch adds
one missing padding into 'struct snd_pcm_mmap_status_x32' to fix
incompatibilities.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_compat.c

index 3a1cc7b97e468bc19fad2fadfd9fb68053e6bc6d..b719d0bd833ecb6d7560380db5eb3b78a9b040c4 100644 (file)
@@ -547,6 +547,7 @@ struct snd_pcm_mmap_status_x32 {
        u32 pad2; /* alignment */
        struct timespec tstamp;
        s32 suspended_state;
+       s32 pad3;
        struct timespec audio_tstamp;
 } __packed;