summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/u_uac1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/u_uac1.c')
-rw-r--r--drivers/usb/gadget/u_uac1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/u_uac1.c b/drivers/usb/gadget/u_uac1.c
index c7d460f43390..7a55fea43430 100644
--- a/drivers/usb/gadget/u_uac1.c
+++ b/drivers/usb/gadget/u_uac1.c
@@ -191,7 +191,7 @@ try_again:
frames = bytes_to_frames(runtime, count);
old_fs = get_fs();
set_fs(KERNEL_DS);
- result = snd_pcm_lib_write(snd->substream, buf, frames);
+ result = snd_pcm_lib_write(snd->substream, (void __user *)buf, frames);
if (result != frames) {
ERROR(card, "Playback error: %d\n", (int)result);
set_fs(old_fs);