user: i can't do this anymore

Living as a sheep herder on a lonely island is becoming an increasingly
appealing option the more i am exposed to my stupidity and inability
to memorize the return values of basic libc functions that i even
implemented myself two fucking months ago.
This commit is contained in:
Felix Kopp 2021-01-07 12:48:47 +01:00
parent 44f45c71bc
commit 9c1b546b16
No known key found for this signature in database
GPG key ID: C478BA0A85F75728

View file

@ -16,13 +16,13 @@
size_t copy_from_user(void *dest, __user const void *src, size_t len)
{
void *tmp = memcpy(dest, src, len);
return (size_t)tmp - (size_t)dest;
return len;
}
size_t copy_to_user(__user void *dest, const void *src, size_t len)
{
void *tmp = memcpy(dest, src, len);
return (size_t)tmp - (size_t)dest;
return len;
}
/*