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/net/netfilter/ipvs/ip_vs_ctl.c:528:5-24: WARNING: atomic_dec_and_test variation before object free at line 533. /home/cocci/testing/drivers/net/ethernet/broadcom/bnxt/bnxt.c:5435:6-25: WARNING: atomic_dec_and_test variation before object free at line 5442. 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/ethernet/intel/i40e/i40e_virtchnl_pf.c:551:29-44: ERROR: reference preceded by free on line 550 /home/cocci/testing/net/l2tp/l2tp_ppp.c:847:23-30: ERROR: reference preceded by free on line 797 /home/cocci/testing/net/l2tp/l2tp_ppp.c:852:28-35: ERROR: reference preceded by free on line 797 /home/cocci/testing/drivers/net/phy/mdio_bus.c:467:1-33: WARNING: Function "for_each_available_child_of_node" should have of_node_put() before return around line 497. /home/cocci/testing/drivers/net/ethernet/intel/igb/igb_main.c:7886:3-8: ERROR: invalid reference to the index variable of the iterator on line 7878 /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c:768:1-8: ERROR: invalid reference to the index variable of the iterator on line 738 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:3687:1-7: preceding lock on line 3662 /home/cocci/testing/net/rxrpc/sendmsg.c:410:1-7: preceding lock on line 442 /home/cocci/testing/net/rxrpc/sendmsg.c:415:1-7: preceding lock on line 442 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9148:2-8: preceding lock on line 9128 /home/cocci/testing/net/smc/af_smc.c:2573:0-1: preceding lock on line 2500 /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/include/linux/mlx5/mlx5_ifc.h:414:12-28: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:3552:11-19: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:4616:12-17: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:5512:12-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:5516:30-33: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:6181:12-25: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:6606:12-29: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:7219:12-16: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:7249:12-24: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:7359:12-20: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:7429:12-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:7476:12-26: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10182:12-35: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10246:12-34: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10331:12-38: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10336:12-27: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10431:12-26: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10534:12-17: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10567:12-21: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10613:12-17: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:12667:43-54: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/drivers/net/ieee802154/ca8210.c:202:59-60: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ieee802154/ca8210.c:203:57-58: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ieee802154/ca8210.c:204:59-60: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ieee802154/ca8210.c:209:57-58: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ieee802154/ca8210.c:210:57-58: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ieee802154/ca8210.c:215:60-61: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ieee802154/ca8210.c:216:57-58: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:577:9-32: duplicated argument to & or | /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:577:35-58: duplicated argument to & or |