From e8903bb1640bb783c555611051bb521aff6667b0 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 10 Feb 2018 19:52:47 +0000 Subject: [PATCH] audio; fix dumb bug Not that we have any working audio layer yet --- Kernel/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/audio.c b/Kernel/audio.c index 9e6bf03e..fb947815 100644 --- a/Kernel/audio.c +++ b/Kernel/audio.c @@ -29,7 +29,7 @@ int audio_ioctl(uarg_t op, void *val) devaudio_wait(i); return 0; case AUDIOC_PLAY: - if (uget(&sound, val, sizeof(sound)) == -1) + if (uget(val, &sound, sizeof(sound)) == -1) return -1; if (sound.channel > audio_info.channels) { udata.u_error = ERANGE; -- 2.34.1