diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-03 21:44:11 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-04 13:57:24 -0400 |
commit | 31acd2665b8f45548e1acfb9131657646333f91c (patch) | |
tree | 3050136ab3991dd74e0544a29dca176e5ef4a24c /drivers/isdn/isdnloop/isdnloop.c | |
parent | ae2a9762d6f54331f683464f07498cf66e7c125c (diff) | |
download | lwn-31acd2665b8f45548e1acfb9131657646333f91c.tar.gz lwn-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/isdnloop.c')
-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: |