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:4060:5-24: WARNING: atomic_dec_and_test variation before object free at line 4067. /home/cocci/testing/fs/btrfs/extent_io.c:4060:5-24: WARNING: atomic_dec_and_test variation before object free at line 4074. /home/cocci/testing/kernel/events/core.c:5336:6-30: WARNING: atomic_dec_and_test variation before object free at line 5339. /home/cocci/testing/kernel/fork.c:943:14-33: WARNING: atomic_dec_and_test variation before object free at line 945. /home/cocci/testing/kernel/fork.c:1383:5-24: WARNING: atomic_dec_and_test variation before object free at line 1385. 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:2541: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/drivers/nvme/host/pr.c:267:23-26: ERROR: reference preceded by free on line 277 /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/include/net/flow_offload.h:378:6-7: ERROR: iterator variable bound on line 377 cannot be NULL /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/net/unix/garbage.c:451:17-23: ERROR: invalid reference to the index variable of the iterator on line 483 /home/cocci/testing/mm/hugetlb.c:6512:2-8: preceding lock on line 6478 /home/cocci/testing/mm/hugetlb.c:5995:2-8: preceding lock on line 6053 /home/cocci/testing/mm/hugetlb.c:5995:2-8: preceding lock on line 6055 /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/net/unix/af_unix.c:2513:1-7: preceding lock on line 2422 /home/cocci/testing/net/unix/af_unix.c:3280:3-9: preceding lock on line 3276 /home/cocci/testing/mm/slub.c:4311:2-8: preceding lock on line 4283 /home/cocci/testing/mm/vmalloc.c:1086:3-9: preceding lock on line 1082 /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/io_uring/register.c:390:1-7: preceding lock on line 333 /home/cocci/testing/io_uring/register.c:390:1-7: preceding lock on line 334 /home/cocci/testing/drivers/block/null_blk/main.c:1057:2-8: preceding lock on line 1094 /home/cocci/testing/mm/vmscan.c:778:1-7: preceding lock on line 694 /home/cocci/testing/net/smc/af_smc.c:2562:0-1: preceding lock on line 2489 /home/cocci/testing/io_uring/napi.c:286:4-10: WARNING: do_div() does a 64-by-32 division, please consider using div64_s64 instead. /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:1584: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/scsi/qedf/qedf_main.c:4024:18-25: ERROR: qedf is NULL but dereferenced. /home/cocci/testing/drivers/pci/pci.c:6790:6-10: duplicated argument to && or ||