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/io_uring/io-wq.c:415:6-25: WARNING: atomic_dec_and_test variation before object free at line 423. /home/cocci/testing/fs/btrfs/extent_io.c:4058:5-24: WARNING: atomic_dec_and_test variation before object free at line 4065. /home/cocci/testing/fs/btrfs/extent_io.c:4058:5-24: WARNING: atomic_dec_and_test variation before object free at line 4072. /home/cocci/testing/kernel/events/core.c:5336:6-30: WARNING: atomic_dec_and_test variation before object free at line 5339. 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/hid/hid-logitech-hidpp.c:2540:1-6: WARNING: invalid free of devm_ allocated data /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:72:2-10: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:80:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:35:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/fs/smb/client/smb2pdu.c:2960:8-14: ERROR: reference preceded by free on line 2960 /home/cocci/testing/fs/smb/client/smb2pdu.c:2973:7-13: ERROR: reference preceded by free on line 2960 /home/cocci/testing/fs/smb/client/smb2pdu.c:2960:8-14: ERROR: reference preceded by free on line 2973 /home/cocci/testing/fs/smb/client/smb2pdu.c:2973:7-13: ERROR: reference preceded by free on line 2973 /home/cocci/testing/drivers/nvme/host/pr.c:267:23-26: ERROR: reference preceded by free on line 277 /home/cocci/testing/include/net/flow_offload.h:378:6-7: ERROR: iterator variable bound on line 377 cannot be NULL /home/cocci/testing/net/unix/garbage.c:457:17-23: ERROR: invalid reference to the index variable of the iterator on line 489 /home/cocci/testing/drivers/scsi/mpi3mr/mpi3mr_transport.c:1559:6-17: ERROR: invalid reference to the index variable of the iterator on line 1515 /home/cocci/testing/fs/btrfs/extent_io.c:3390:2-8: preceding lock on line 3385 /home/cocci/testing/fs/btrfs/extent_io.c:3410:2-8: preceding lock on line 3385 /home/cocci/testing/fs/btrfs/extent_io.c:3420:2-8: preceding lock on line 3385 /home/cocci/testing/net/smc/af_smc.c:2553:0-1: preceding lock on line 2480 /home/cocci/testing/mm/vmalloc.c:1086:3-9: preceding lock on line 1082 /home/cocci/testing/net/unix/af_unix.c:2476:1-7: preceding lock on line 2385 /home/cocci/testing/net/unix/af_unix.c:3243:3-9: preceding lock on line 3239 /home/cocci/testing/io_uring/register.c:386:1-7: preceding lock on line 333 /home/cocci/testing/mm/hugetlb.c:6500:2-8: preceding lock on line 6466 /home/cocci/testing/mm/hugetlb.c:5983:2-8: preceding lock on line 6041 /home/cocci/testing/mm/hugetlb.c:5983:2-8: preceding lock on line 6043 /home/cocci/testing/mm/hugetlb.c:739:3-9: preceding lock on line 712 /home/cocci/testing/mm/hugetlb.c:788:2-8: preceding lock on line 778 /home/cocci/testing/drivers/block/null_blk/main.c:1057:2-8: preceding lock on line 1094 /home/cocci/testing/mm/slub.c:4310:2-8: preceding lock on line 4282 /home/cocci/testing/mm/vmscan.c:778:1-7: preceding lock on line 694 /home/cocci/testing/drivers/gpu/drm/amd/include/pptable.h:679:43-50: 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/gpu/drm/amd/include/pptable.h:557:34-41: 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/gpu/drm/amd/include/pptable.h:517:47-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/gpu/drm/amd/include/pptable.h:533:42-49: 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/gpu/drm/amd/include/pptable.h:572:42-49: 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/gpu/drm/amd/include/pptable.h:642:46-53: 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/gpu/drm/amd/include/pptable.h:596:46-53: 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/gpu/drm/amd/include/pptable.h:608:32-39: 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/gpu/drm/amd/include/pptable.h:748:43-50: 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/gpu/drm/amd/include/pptable.h:483:24-30: 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/gpu/drm/amd/include/pptable.h:630:17-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/drivers/gpu/drm/amd/include/pptable.h:584:17-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/cdrom.h:30:9-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/drivers/net/ethernet/sfc/tc.c:1587:29-80: WARNING avoid newline at end of message in NL_SET_ERR_MSG_MOD /home/cocci/testing/tools/perf/builtin-trace.c:3035:5-8: Unneeded variable: "err". Return "0" on line 3051 /home/cocci/testing/drivers/pci/pci.c:6791:6-10: duplicated argument to && or ||