|
@@ -193,12 +193,12 @@ ErrorOr<void> StorageDevice::ioctl(OpenFileDescription&, unsigned request, Users
|
|
|
switch (request) {
|
|
|
case STORAGE_DEVICE_GET_SIZE: {
|
|
|
size_t disk_size = m_max_addressable_block * block_size();
|
|
|
- return copy_to_user(Userspace<size_t*>(arg), &disk_size);
|
|
|
+ return copy_to_user(static_ptr_cast<size_t*>(arg), &disk_size);
|
|
|
break;
|
|
|
}
|
|
|
case STORAGE_DEVICE_GET_BLOCK_SIZE: {
|
|
|
size_t size = block_size();
|
|
|
- return copy_to_user(Userspace<size_t*>(arg), &size);
|
|
|
+ return copy_to_user(static_ptr_cast<size_t*>(arg), &size);
|
|
|
break;
|
|
|
}
|
|
|
default:
|