aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-12-28 16:30:22 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2017-12-28 16:30:22 -0500
commit446bd647ceee73fbed50404daece9cbcec751f66 (patch)
tree735e8d6c808b4fb2f73e51e7e9237db93f10fe48
parentfc1c428eb46af8183be771d2c78b3902acbeffe3 (diff)
snd_hwdep_dsp_load(): don't bother with access_ok()
the only remaining instance of ->dsp_load() doesn't need it. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--sound/core/hwdep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/core/hwdep.c b/sound/core/hwdep.c
index 8faae3d1455d..25b8f2234fc7 100644
--- a/sound/core/hwdep.c
+++ b/sound/core/hwdep.c
@@ -233,8 +233,6 @@ static int snd_hwdep_dsp_load(struct snd_hwdep *hw,
233 /* check whether the dsp was already loaded */ 233 /* check whether the dsp was already loaded */
234 if (hw->dsp_loaded & (1 << info.index)) 234 if (hw->dsp_loaded & (1 << info.index))
235 return -EBUSY; 235 return -EBUSY;
236 if (!access_ok(VERIFY_READ, info.image, info.length))
237 return -EFAULT;
238 err = hw->ops.dsp_load(hw, &info); 236 err = hw->ops.dsp_load(hw, &info);
239 if (err < 0) 237 if (err < 0)
240 return err; 238 return err;