linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Resource Leak] Missing closing files in tools/bpf/bpf_asm.c
@ 2021-12-30  3:50 Ryan Cai
  0 siblings, 0 replies; only message in thread
From: Ryan Cai @ 2021-12-30  3:50 UTC (permalink / raw)
  To: akpm, shuah; +Cc: linux-mm, linux-kselftest, linux-kernel

Dear Kernel maintainers,

          1. In ksm_read_sysfs, the file opened at Line 74 may not closed when going to Line 83.
          Location: https://github.com/torvalds/linux/blob/512b7931ad0561ffe14265f9ff554a3c081b476b/tools/testing/selftests/vm/ksm_tests.c#L74-L83

         2. In ksm_write_sysfs, the file opened at Line 56 may not closed when going to Line 64.
         Location: https://github.com/torvalds/linux/blob/512b7931ad0561ffe14265f9ff554a3c081b476b/tools/testing/selftests/vm/ksm_tests.c#L55-L65

           Should they be bugs? I can send a patch for these.

Best,
Ryan



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-30  3:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-30  3:50 [Resource Leak] Missing closing files in tools/bpf/bpf_asm.c Ryan Cai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).