diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-04 03:44:11 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-04 19:57:24 +0200 |
commit | 31acd2665b8f45548e1acfb9131657646333f91c (patch) | |
tree | 3050136ab3991dd74e0544a29dca176e5ef4a24c /drivers/isdn/isdnloop | |
parent | compat statfs: switch to copy_to_user() (diff) | |
download | linux-31acd2665b8f45548e1acfb9131657646333f91c.tar.xz linux-31acd2665b8f45548e1acfb9131657646333f91c.zip |
isdn: get rid of pointless access_ok()
copy_to_user()/copy_from_user()/get_user() check themselves
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/isdn/isdnloop')
-rw-r--r-- | drivers/isdn/isdnloop/isdnloop.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/isdn/isdnloop/isdnloop.c b/drivers/isdn/isdnloop/isdnloop.c index ef9c8e4f1fa2..32cb0cbd7217 100644 --- a/drivers/isdn/isdnloop/isdnloop.c +++ b/drivers/isdn/isdnloop/isdnloop.c @@ -1142,8 +1142,6 @@ isdnloop_command(isdn_ctrl *c, isdnloop_card *card) case ISDNLOOP_IOCTL_DEBUGVAR: return (ulong) card; case ISDNLOOP_IOCTL_STARTUP: - if (!access_ok(VERIFY_READ, (void *) a, sizeof(isdnloop_sdef))) - return -EFAULT; return isdnloop_start(card, (isdnloop_sdef *) a); break; case ISDNLOOP_IOCTL_ADDCARD: |