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/drivers/net/ethernet/intel/ice/ice_main.c:9170:2-8: preceding lock on line 9150 /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/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) /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:3576: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:4640: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:5536: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:5540: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:6205: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:6630: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:7243: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:7273: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:7383: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:7453: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:7500: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:10206: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:10270: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:10355: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:10360: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:10455: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:10558: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:10591: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:10637: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:12691:43-54: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)