aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorNigel Croxon <[email protected]>2023-09-11 14:25:23 -0700
committerSong Liu <[email protected]>2023-09-11 14:41:58 -0700
commitdf203da47f4428bc286fc99318936416253a321c (patch)
tree5b1ae68efd0ee485fde696b121a42a2ccf9b4cab /lib/test_fortify/write_overflow-strncpy-src.c
parent99892147f028d711f9d40fefad4f33632593864c (diff)
md/raid1: fix error: ISO C90 forbids mixed declarations
There is a compile error when this commit is added: md: raid1: fix potential OOB in raid1_remove_disk() drivers/md/raid1.c: In function 'raid1_remove_disk': drivers/md/raid1.c:1844:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] 1844 |         struct raid1_info *p = conf->mirrors + number;     |         ^~~~~~ That's because the new code was inserted before the struct. The change is move the struct command above this commit. Fixes: 8b0472b50bcf ("md: raid1: fix potential OOB in raid1_remove_disk()") Signed-off-by: Nigel Croxon <[email protected]> Signed-off-by: Song Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions