diff options
| author | Jesper Juhl <juhl-lkml@dif.dk> | 2005-03-13 00:29:18 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-13 00:29:18 -0800 |
| commit | 4b8e07293b3fc84fb254214b5e6c2fd71f20ea37 (patch) | |
| tree | c1fa456f7220837114ade2a4a4249607127f7ad0 /ipc | |
| parent | 6ca2ea5b7c876bf79f72365072bb557a35107587 (diff) | |
[PATCH] verify_area cleanup : i386 and misc.
This patch converts verify_area to access_ok in arch/i386, fs/, kernel/ and a
few other bits that didn't fit in the other patches or that I actually was
able to test on my hardware - this is by far the best tested of all the
patches.
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'ipc')
| -rw-r--r-- | ipc/compat_mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/compat_mq.c b/ipc/compat_mq.c index c7e742bfa964..d8d1e9ff4e88 100644 --- a/ipc/compat_mq.c +++ b/ipc/compat_mq.c @@ -25,7 +25,7 @@ struct compat_mq_attr { static inline int get_compat_mq_attr(struct mq_attr *attr, const struct compat_mq_attr __user *uattr) { - if (verify_area(VERIFY_READ, uattr, sizeof *uattr)) + if (!access_ok(VERIFY_READ, uattr, sizeof *uattr)) return -EFAULT; return __get_user(attr->mq_flags, &uattr->mq_flags) |
