]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
stackinit: Fix comment for test_small_end
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 3 Feb 2025 14:34:07 +0000 (15:34 +0100)
committerKees Cook <kees@kernel.org>
Thu, 6 Feb 2025 19:36:25 +0000 (11:36 -0800)
In union test_small_end, the small members are three and four.

Fixes: e71a29db79da1946 ("stackinit: Add union initialization to selftests")
Closes: https://lore.kernel.org/CAMuHMdWvcKOc6v5o3-9-SqP_4oh5-GZQjZZb=-krhY=mVRED_Q@mail.gmail.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/3f8faa2d7d0d6b36571093ab0fb1fd5157abd7bb.1738593178.git.geert+renesas@glider.be
Signed-off-by: Kees Cook <kees@kernel.org>
lib/stackinit_kunit.c

index 967b345a98fd87ae6765131169ee543f5f57d0e9..135322592faf804f0b312a1c31e967a2f31f0ec4 100644 (file)
@@ -351,7 +351,7 @@ union test_small_start {
        } big;
 };
 
-/* Mismatched sizes, with one and two being small */
+/* Mismatched sizes, with three and four being small */
 union test_small_end {
        short one;
        unsigned long two;