projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: wavefront: Proper check of get_user() error
[linux-2.6-microblaze.git]
/
sound
/
isa
/
wavefront
/
wavefront_synth.c
diff --git
a/sound/isa/wavefront/wavefront_synth.c
b/sound/isa/wavefront/wavefront_synth.c
index
69cbc79
..
2aaaa68
100644
(file)
--- a/
sound/isa/wavefront/wavefront_synth.c
+++ b/
sound/isa/wavefront/wavefront_synth.c
@@
-1094,7
+1094,8
@@
wavefront_send_sample (snd_wavefront_t *dev,
if (dataptr < data_end) {
- __get_user (sample_short, dataptr);
+ if (get_user(sample_short, dataptr))
+ return -EFAULT;
dataptr += skip;
if (data_is_unsigned) { /* GUS ? */