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:5484:6-25: WARNING: atomic_dec_and_test variation before object free at line 5491. /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:2245:3-11: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/infiniband/core/device.c:2182:2-11: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/infiniband/core/device.c:2325:4-11: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/net/ethernet/intel/i40e/i40e_main.c:15769:2-8: ERROR: missing iounmap; ioremap on line 15616 and execution via conditional on line 15768 /home/cocci/testing/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:551:29-44: ERROR: reference preceded by free on line 550 /home/cocci/testing/drivers/net/ethernet/intel/igb/igb_main.c:7859:3-8: ERROR: invalid reference to the index variable of the iterator on line 7851 /home/cocci/testing/net/9p/trans_virtio.c:721:25-29: ERROR: invalid reference to the index variable of the iterator on line 704 /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/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c:1537:2-12: second lock on line 1537 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9135:2-8: preceding lock on line 9115 /home/cocci/testing/drivers/net/ethernet/intel/iavf/iavf_main.c:2266:6-8: WARNING: possible condition with no effect (if == else) /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)