summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-05-01 22:28:54 +0200
committerGitHub <noreply@github.com>2018-05-01 22:28:54 +0200
commit8262aeeac886f8b03cac5a5050580ac7ac77af4c (patch)
treeed717539121142781394d5fcca23672c8906717c /src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
parentGetSharedFontInOrderOfPriority (#381) (diff)
parentGPU: Don't write to invalid memory locations when handling ioctls that don't have an output. (diff)
downloadyuzu-8262aeeac886f8b03cac5a5050580ac7ac77af4c.tar
yuzu-8262aeeac886f8b03cac5a5050580ac7ac77af4c.tar.gz
yuzu-8262aeeac886f8b03cac5a5050580ac7ac77af4c.tar.bz2
yuzu-8262aeeac886f8b03cac5a5050580ac7ac77af4c.tar.lz
yuzu-8262aeeac886f8b03cac5a5050580ac7ac77af4c.tar.xz
yuzu-8262aeeac886f8b03cac5a5050580ac7ac77af4c.tar.zst
yuzu-8262aeeac886f8b03cac5a5050580ac7ac77af4c.zip
Diffstat (limited to 'src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
index 36d7f837b..a7097bd23 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
@@ -39,7 +39,6 @@ u32 nvhost_as_gpu::InitalizeEx(const std::vector<u8>& input, std::vector<u8>& ou
IoctlInitalizeEx params{};
std::memcpy(&params, input.data(), input.size());
NGLOG_WARNING(Service_NVDRV, "(STUBBED) called, big_page_size={:#X}", params.big_page_size);
- std::memcpy(output.data(), &params, output.size());
return 0;
}
@@ -135,7 +134,6 @@ u32 nvhost_as_gpu::BindChannel(const std::vector<u8>& input, std::vector<u8>& ou
std::memcpy(&params, input.data(), input.size());
NGLOG_DEBUG(Service_NVDRV, "called, fd={:X}", params.fd);
channel = params.fd;
- std::memcpy(output.data(), &params, output.size());
return 0;
}