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:5482:6-25: WARNING: atomic_dec_and_test variation before object free at line 5489. /home/cocci/testing/net/netfilter/ipvs/ip_vs_ctl.c:528:5-24: WARNING: atomic_dec_and_test variation before object free at line 533. 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/drivers/infiniband/core/device.c:2239:3-11: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/infiniband/core/device.c:2178:2-11: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/infiniband/core/device.c:2319:4-11: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/net/ethernet/broadcom/genet/bcmgenet.c:1474:5-13: ERROR: invalid reference to the index variable of the iterator on line 1452 /home/cocci/testing/net/unix/garbage.c:437:17-23: ERROR: invalid reference to the index variable of the iterator on line 469 /home/cocci/testing/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c:1537:2-12: second lock on line 1537 /home/cocci/testing/net/unix/af_unix.c:2471:1-7: preceding lock on line 2380 /home/cocci/testing/net/unix/af_unix.c:3240:3-9: preceding lock on line 3236 /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:4655:1-7: preceding lock on line 4636 /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)