Skip to content

Commit

Permalink
stackinit: Fix comment for test_small_end
Browse files Browse the repository at this point in the history
In union test_small_end, the small members are three and four.

Fixes: e71a29d ("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 <[email protected]>
Link: https://lore.kernel.org/r/3f8faa2d7d0d6b36571093ab0fb1fd5157abd7bb.1738593178.git.geert+renesas@glider.be
Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
geertu authored and kees committed Feb 6, 2025
1 parent bb54088 commit 78bba60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stackinit_kunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78bba60

Please sign in to comment.