projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc1c428
)
snd_hwdep_dsp_load(): don't bother with access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 28 Dec 2017 21:30:22 +0000
(16:30 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 28 Dec 2017 21:30:22 +0000
(16:30 -0500)
the only remaining instance of ->dsp_load() doesn't need it.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
sound/core/hwdep.c
patch
|
blob
|
history
diff --git
a/sound/core/hwdep.c
b/sound/core/hwdep.c
index 8faae3d1455df18c330f8e59785722dc0aecaa80..25b8f2234fc72310841f22402d3952e3a5c12493 100644
(file)
--- a/
sound/core/hwdep.c
+++ b/
sound/core/hwdep.c
@@
-233,8
+233,6
@@
static int snd_hwdep_dsp_load(struct snd_hwdep *hw,
/* check whether the dsp was already loaded */
if (hw->dsp_loaded & (1 << info.index))
return -EBUSY;
- if (!access_ok(VERIFY_READ, info.image, info.length))
- return -EFAULT;
err = hw->ops.dsp_load(hw, &info);
if (err < 0)
return err;