Please check for false positives in the output before submitting a patch. When using "patch" mode, carefully review the patch before submitting it. /home/cocci/testing/drivers/net/ethernet/broadcom/bnxt/bnxt.c:5488:6-25: WARNING: atomic_dec_and_test variation before object free at line 5495. /home/cocci/testing/kernel/fork.c:943:14-33: WARNING: atomic_dec_and_test variation before object free at line 945. /home/cocci/testing/kernel/fork.c:1383:5-24: WARNING: atomic_dec_and_test variation before object free at line 1385. warning: line 134: should no_llseek be a metavariable? warning: line 141: should noop_llseek be a metavariable? warning: line 223: should nonseekable_open be a metavariable? warning: line 290: should nonseekable_open be a metavariable? warning: line 338: should nonseekable_open be a metavariable? /home/cocci/testing/io_uring/net.c:183:3-8: WARNING: NULL check before some freeing functions is not needed. /home/cocci/testing/kernel/exit.c:489:21-22: ERROR: invalid reference to the index variable of the iterator on line 478 /home/cocci/testing/kernel/trace/trace_output.c:971:25-29: ERROR: invalid reference to the index variable of the iterator on line 954 /home/cocci/testing/net/unix/garbage.c:457:17-23: ERROR: invalid reference to the index variable of the iterator on line 489 /home/cocci/testing/drivers/net/tun.c:2031:1-7: preceding lock on line 1835 /home/cocci/testing/net/unix/af_unix.c:2476:1-7: preceding lock on line 2385 /home/cocci/testing/net/unix/af_unix.c:3243:3-9: preceding lock on line 3239 /home/cocci/testing/kernel/exit.c:1588:3-9: preceding lock on line 1583 /home/cocci/testing/kernel/exit.c:1595:4-10: preceding lock on line 1583 /home/cocci/testing/kernel/exit.c:1599:4-10: preceding lock on line 1583 /home/cocci/testing/drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h:9731:4-12: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)