assert_is_myproc();
+#ifdef CONFIG_COMPAT
if (is_compat_task())
l_size = sizeof(compat_long_t);
+#endif
if (!access_ok(VERIFY_READ, (long *) (intptr_t) THIS->addr, l_size))
goto fault;
if (l_size == sizeof(long)) {
if (__stp_get_user(THIS->__retvalue, (long *) (intptr_t) THIS->addr))
goto fault;
+#ifdef CONFIG_COMPAT
} else {
if (__stp_get_user(THIS->__retvalue, (compat_long_t *) (intptr_t) THIS->addr)) {
goto fault;
}
+#endif
}
if (0) {
assert_is_myproc();
+#ifdef CONFIG_COMPAT
if (is_compat_task())
l_size = sizeof(compat_long_t);
+#endif
if (!access_ok(VERIFY_READ, (long *) (intptr_t) THIS->addr, l_size))
goto fault;
if (__stp_get_user(THIS->__retvalue, (long *) (intptr_t) THIS->addr)) {
goto fault;
}
+#ifdef CONFIG_COMPAT
} else {
if (__stp_get_user(THIS->__retvalue, (compat_long_t *) (intptr_t) THIS->addr)) {
goto fault;
}
+#endif
}
if (0) {