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:
Augustin Cavalier 2019-09-02 22:00:57 -04:00
parent 81b9fd211f
commit a785ea4b3a

View File

@ -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));