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/kernel/fork.c:944:14-33: WARNING: atomic_dec_and_test variation before object free at line 946. /home/cocci/testing/kernel/fork.c:1386:5-24: WARNING: atomic_dec_and_test variation before object free at line 1388. /home/cocci/testing/drivers/net/ethernet/broadcom/bnxt/bnxt.c:5592:6-25: WARNING: atomic_dec_and_test variation before object free at line 5599. warning: line 140: should noop_llseek be a metavariable? warning: line 222: should nonseekable_open be a metavariable? warning: line 289: should nonseekable_open be a metavariable? warning: line 337: should nonseekable_open be a metavariable? /home/cocci/testing/drivers/net/ethernet/intel/i40e/i40e_main.c:15839:2-8: ERROR: missing iounmap; ioremap on line 15686 and execution via conditional on line 15838 /home/cocci/testing/kernel/exit.c:515:18-19: ERROR: invalid reference to the index variable of the iterator on line 508 /home/cocci/testing/drivers/net/ethernet/intel/igb/igb_main.c:7876:3-8: ERROR: invalid reference to the index variable of the iterator on line 7868 /home/cocci/testing/drivers/net/ethernet/intel/i40e/i40e_ethtool.c:4096:32-37: ERROR: invalid reference to the index variable of the iterator on line 4050 /home/cocci/testing/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:687:1-6: ERROR: invalid reference to the index variable of the iterator on line 665 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9344:2-8: preceding lock on line 9324 /home/cocci/testing/kernel/exit.c:1652:3-9: preceding lock on line 1647 /home/cocci/testing/kernel/exit.c:1659:4-10: preceding lock on line 1647 /home/cocci/testing/kernel/exit.c:1663:4-10: preceding lock on line 1647 /home/cocci/testing/kernel/exit.c:531:1-7: preceding lock on line 497 /home/cocci/testing/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:4474:1-7: preceding lock on line 4376 /home/cocci/testing/drivers/net/tun.c:2035:1-7: preceding lock on line 1839 /home/cocci/testing/net/ethtool/ioctl.c:1612:1-7: preceding lock on line 1467 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:3997:1-7: preceding lock on line 3972 /home/cocci/testing/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:2769:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_ul instead. /home/cocci/testing/drivers/net/ethernet/freescale/ucc_geth.h:645:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)