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/homa/homa_peer.c:227:32-52: WARNING: casting value returned by memory allocation function to (struct homa_dead_dst *) is useless. /home/cocci/testing/drivers/net/netdevsim/netdev.c:875:13-14: WARNING kvmalloc is used to allocate this memory at line 860 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/drivers/net/team/team_core.c:2759:12-16: ERROR: invalid reference to the index variable of the iterator on line 2760 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1565:5-7: ERROR: invalid reference to the index variable of the iterator on line 1534 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1565:38-40: ERROR: invalid reference to the index variable of the iterator on line 1534 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1565:5-7: ERROR: invalid reference to the index variable of the iterator on line 1546 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1565:38-40: ERROR: invalid reference to the index variable of the iterator on line 1546 /home/cocci/testing/net/smc/af_smc.c:2564:0-1: preceding lock on line 2492 /home/cocci/testing/net/ipv4/igmp.c:599:12-21: ERROR: pmc is NULL but dereferenced.