Browse Source

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>
Al Viro 7 years ago
parent
commit
446bd647ce
1 changed files with 0 additions and 2 deletions
  1. 0 2
      sound/core/hwdep.c

+ 0 - 2
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 */
 	/* check whether the dsp was already loaded */
 	if (hw->dsp_loaded & (1 << info.index))
 	if (hw->dsp_loaded & (1 << info.index))
 		return -EBUSY;
 		return -EBUSY;
-	if (!access_ok(VERIFY_READ, info.image, info.length))
-		return -EFAULT;
 	err = hw->ops.dsp_load(hw, &info);
 	err = hw->ops.dsp_load(hw, &info);
 	if (err < 0)
 	if (err < 0)
 		return err;
 		return err;