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:5585:6-25: WARNING: atomic_dec_and_test variation before object free at line 5592. 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/net/dsa/ocelot/felix_vsc9959.c:2262:22-25: ERROR: reference preceded by free on line 2276 /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:122:39-44: ERROR: invalid reference to the index variable of the iterator on line 102 /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:122:48-53: ERROR: invalid reference to the index variable of the iterator on line 102 /home/cocci/testing/drivers/net/ethernet/intel/igb/igb_main.c:7872:3-8: ERROR: invalid reference to the index variable of the iterator on line 7864 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6159:9-13: ERROR: invalid reference to the index variable of the iterator on line 6151 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_vf_lib.c:965:1-7: preceding lock on line 858 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:4019:1-7: preceding lock on line 3994 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6363:1-7: preceding lock on line 6324 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6500:1-7: preceding lock on line 6393 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9327:2-8: preceding lock on line 9307 /home/cocci/testing/drivers/net/dsa/ocelot/felix_vsc9959.c:1395:2-8: WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead.