Re: [PATCH] selftests/mm: Drop redundant open() in mprotect_tests()

SJ Park <[email protected]>
Newsgroups org.kernel.vger.linux-kselftest,org.kernel.vger.linux-kernel,org.kvack.linux-mm
Message-ID <[email protected]>
On Mon, 17 Aug 2026 16:06:16 +0800 Hongfu Li <[email protected]> wrote:

> From: Hongfu Li <[email protected]>
> 
> Remove duplicate open() for local pagemap_fd in mprotect_tests() that
> shadows the global pagemap_fd already opened in main(). The local fd
> is never used in the function.

Nice catch!

> 
> Signed-off-by: Hongfu Li <[email protected]>

Reviewed-by: SJ Park <[email protected]>


Thanks,
SJ

[...]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.