3
0
Fork 0
forked from suyu/suyu

Merge pull request #978 from bunnei/fixioctl

nvhost_gpu: Don't over copy IoctlSubmitGpfifo.
This commit is contained in:
bunnei 2018-08-08 19:16:14 -04:00 committed by GitHub
commit 9f48454ea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,7 +147,7 @@ u32 nvhost_gpu::SubmitGPFIFO(const std::vector<u8>& input, std::vector<u8>& outp
} }
params.fence_out.id = 0; params.fence_out.id = 0;
params.fence_out.value = 0; params.fence_out.value = 0;
std::memcpy(output.data(), &params, output.size()); std::memcpy(output.data(), &params, sizeof(IoctlSubmitGpfifo));
return 0; return 0;
} }