Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/x86/lam: Fix minor memory in do_uring()

Exception branch returns without freeing 'fi'.

Signed-off-by: liuye <liuye@kylinos.cn>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250114082650.113105-1-liuye@kylinos.cn

authored by

liuye and committed by
Ingo Molnar
c4f23a9d d40459cc

+3 -1
+3 -1
tools/testing/selftests/x86/lam.c
··· 596 596 fi->file_fd = file_fd; 597 597 598 598 ring = malloc(sizeof(*ring)); 599 - if (!ring) 599 + if (!ring) { 600 + free(fi); 600 601 return 1; 602 + } 601 603 602 604 memset(ring, 0, sizeof(struct io_ring)); 603 605