kernel: Fix logic inversion in FileDevice.
Apparently nobody ever got here in SMAP mode; otherwise this would have caused a KDL...
This commit is contained in:
parent
81b9fd211f
commit
a785ea4b3a
@ -253,7 +253,7 @@ set_ioctl_result(const ResultType& result, void* buffer, size_t length)
|
||||
if (buffer == NULL)
|
||||
return B_BAD_ADDRESS;
|
||||
|
||||
if (!IS_USER_ADDRESS(buffer))
|
||||
if (IS_USER_ADDRESS(buffer))
|
||||
return user_memcpy(buffer, &result, sizeof(ResultType));
|
||||
|
||||
memcpy(buffer, &result, sizeof(ResultType));
|
||||
|
Loading…
Reference in New Issue
Block a user