mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 17:30:53 +07:00
fc1c428eb4
memdup_user() checks it, so the only effect would be failing with -EINVAL instead of -EFAULT in case when access_ok() is false. However, the caller has already checked access_ok() itself (and would have buggered off with -EFAULT), so the check is completely pointless. Removing it both simplifies the only instance of ->dsp_load() and allows to get rid of the check in caller - its sole effect used to be in preventing a bogus error value from access_ok() in the instance. Let memdup_user() do the right thing instead... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> |
||
---|---|---|
.. | ||
Makefile | ||
us122l.c | ||
us122l.h | ||
usb_stream.c | ||
usb_stream.h | ||
usbus428ctldefs.h | ||
usbusx2y.c | ||
usbusx2y.h | ||
usbusx2yaudio.c | ||
usx2y.h | ||
usx2yhwdeppcm.c | ||
usx2yhwdeppcm.h | ||
usX2Yhwdep.c | ||
usX2Yhwdep.h |