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/kernel/events/core.c:5451:6-30: WARNING: atomic_dec_and_test variation before object free at line 5454. /home/cocci/testing/fs/namei.c:273:6-25: WARNING: atomic_dec_and_test variation before object free at line 278. /home/cocci/testing/drivers/infiniband/core/uverbs_cmd.c:680:15-34: WARNING: atomic_dec_and_test variation before object free at line 690. /home/cocci/testing/kernel/cgroup/cgroup.c:5892:5-24: WARNING: atomic_dec_and_test variation before object free at line 5894. /home/cocci/testing/drivers/net/ethernet/broadcom/bnxt/bnxt.c:5587:6-25: WARNING: atomic_dec_and_test variation before object free at line 5594. warning: line 140: should noop_llseek be a metavariable? warning: line 222: should nonseekable_open be a metavariable? warning: line 289: should nonseekable_open be a metavariable? warning: line 337: should nonseekable_open be a metavariable? /home/cocci/testing/fs/fuse/dev.c:2290:9-42: ERROR: reference preceded by free on line 2290 /home/cocci/testing/drivers/net/ethernet/freescale/enetc/enetc_pf.c:1206:1-7: ERROR: missing put_device; call of_find_device_by_node on line 1200, but without a corresponding object release within this function. /home/cocci/testing/arch/x86/kvm/svm/sev.c:1925:7-8: ERROR: iterator variable bound on line 1920 cannot be NULL /home/cocci/testing/arch/x86/kvm/svm/sev.c:1945:6-7: ERROR: iterator variable bound on line 1940 cannot be NULL /home/cocci/testing/fs/notify/fanotify/fanotify_user.c:1208:20-23: ERROR: invalid reference to the index variable of the iterator on line 1194 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1592:5-7: ERROR: invalid reference to the index variable of the iterator on line 1561 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1592:38-40: ERROR: invalid reference to the index variable of the iterator on line 1561 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1592:5-7: ERROR: invalid reference to the index variable of the iterator on line 1573 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1592:38-40: ERROR: invalid reference to the index variable of the iterator on line 1573 /home/cocci/testing/fs/notify/fanotify/fanotify_user.c:849:4-13: second lock on line 849 /home/cocci/testing/fs/notify/fanotify/fanotify_user.c:849:4-13: second lock on line 854 /home/cocci/testing/fs/notify/fanotify/fanotify_user.c:920:1-10: second lock on line 928 /home/cocci/testing/fs/notify/fanotify/fanotify_user.c:920:1-10: second lock on line 946 /home/cocci/testing/fs/notify/fanotify/fanotify_user.c:928:2-11: second lock on line 928 /home/cocci/testing/fs/notify/fanotify/fanotify_user.c:928:2-11: second lock on line 946 /home/cocci/testing/fs/notify/fanotify/fanotify_user.c:946:2-11: second lock on line 946 /home/cocci/testing/fs/namei.c:3199:2-8: preceding lock on line 3194 /home/cocci/testing/security/integrity/ima/ima_main.c:603:3-9: preceding lock on line 586 /home/cocci/testing/security/integrity/ima/ima_main.c:603:3-9: preceding lock on line 586 /home/cocci/testing/security/integrity/ima/ima_main.c:611:2-8: preceding lock on line 586 /home/cocci/testing/security/integrity/ima/ima_main.c:611:2-8: preceding lock on line 607 /home/cocci/testing/fs/btrfs/ioctl.c:3581:5-11: preceding lock on line 3575 /home/cocci/testing/fs/btrfs/ioctl.c:441:2-8: preceding lock on line 437 /home/cocci/testing/net/ethtool/ioctl.c:1607:1-7: preceding lock on line 1462 /home/cocci/testing/fs/fuse/dev.c:1304:2-8: preceding lock on line 1283 /home/cocci/testing/fs/fuse/dev.c:1309:3-9: preceding lock on line 1283 /home/cocci/testing/kernel/signal.c:2260:2-8: preceding lock on line 2250 /home/cocci/testing/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h:294:25-42: 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 |