projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
513ace7
)
ALSA: rawmidi: Use comapt_put_timespec()
author
Takashi Iwai
<tiwai@suse.de>
Sun, 28 Feb 2016 10:30:53 +0000
(11:30 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 28 Feb 2016 16:44:48 +0000
(17:44 +0100)
Instead of open-coding, use the existing helper to copy a 32bit
timespec from/to 64bit.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/rawmidi_compat.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/rawmidi_compat.c
b/sound/core/rawmidi_compat.c
index 5268c1f58c25b7e143b5713a45dac36220558cc5..836d1c9fc2cc3b34f875f69f638511037579d04d 100644
(file)
--- a/
sound/core/rawmidi_compat.c
+++ b/
sound/core/rawmidi_compat.c
@@
-85,8
+85,7
@@
static int snd_rawmidi_ioctl_status_compat(struct snd_rawmidi_file *rfile,
if (err < 0)
return err;
- if (put_user(status.tstamp.tv_sec, &src->tstamp.tv_sec) ||
- put_user(status.tstamp.tv_nsec, &src->tstamp.tv_nsec) ||
+ if (compat_put_timespec(&status.tstamp, &src->tstamp) ||
put_user(status.avail, &src->avail) ||
put_user(status.xruns, &src->xruns))
return -EFAULT;