Re: [PATCH next] tools/testing: Check correct variable in open_procmap()

2025-05-28 Thread Lorenzo Stoakes
Thanks so much for catching this Dan! On Wed, May 28, 2025 at 11:13:45AM +0300, Dan Carpenter wrote: > Check if "procmap_out->fd" is negative instead of "procmap_out" (which > is a pointer). Ye gods, so sorry for such a clanger! Entirely my fault, though I may mutter a grumble about C type safety

[PATCH next] tools/testing: Check correct variable in open_procmap()

2025-05-28 Thread Dan Carpenter
Check if "procmap_out->fd" is negative instead of "procmap_out" (which is a pointer). Fixes: bd23f293a0d5 ("tools/testing: add PROCMAP_QUERY helper functions in mm self tests") Signed-off-by: Dan Carpenter --- tools/testing/selftests/mm/vm_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti