Unverified Commit 3f828304 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents a1812344 fcf8c2bf
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -23,9 +23,11 @@ static long write_ldt_entry(struct mm_id *mm_idp, int func,
{
	long res;
	void *stub_addr;

	BUILD_BUG_ON(sizeof(*desc) % sizeof(long));

	res = syscall_stub_data(mm_idp, (unsigned long *)desc,
				(sizeof(*desc) + sizeof(long) - 1) &
				    ~(sizeof(long) - 1),
				sizeof(*desc) / sizeof(long),
				addr, &stub_addr);
	if (!res) {
		unsigned long args[] = { func,