From f32fde6152c2ae6a71ef2afea6b8e3b370ac0a08 Mon Sep 17 00:00:00 2001
From: Pankaj Raghav
Date: Fri, 24 Mar 2023 09:30:12 +0100
Subject: [PATCH] Kernel/StdLib: Change try_copy_n_to_user to copy_n_to_user
Let us keep the naming consistent between copy_n_from_user() and
copy_n_to_user()
---
Kernel/StdLib.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Kernel/StdLib.h b/Kernel/StdLib.h
index b420e0dc44..09bb646ffd 100644
--- a/Kernel/StdLib.h
+++ b/Kernel/StdLib.h
@@ -156,7 +156,7 @@ template
}
template
-[[nodiscard]] inline ErrorOr try_copy_n_to_user(Userspace dest, T const* src, size_t count)
+[[nodiscard]] inline ErrorOr copy_n_to_user(Userspace dest, T const* src, size_t count)
{
static_assert(IsTriviallyCopyable);
Checked size = sizeof(T);