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/wireless/ath/ath12k/mac.c:3605:12-34: WARNING: casting value returned by memory allocation function to (struct ath12k_link_vif *) is useless. /home/cocci/testing/drivers/net/ethernet/broadcom/bnxt/bnxt.c:5735:6-25: WARNING: atomic_dec_and_test variation before object free at line 5742. 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/wireless/realtek/rtw89/debug.c:3295:29-32: ERROR: reference preceded by free on line 3288 /home/cocci/testing/drivers/net/phy/mdio_bus.c:467:1-33: WARNING: Function "for_each_available_child_of_node" should have of_node_put() before return around line 497. /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1572:5-7: ERROR: invalid reference to the index variable of the iterator on line 1541 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1572:38-40: ERROR: invalid reference to the index variable of the iterator on line 1541 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1572:5-7: ERROR: invalid reference to the index variable of the iterator on line 1553 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1572:38-40: ERROR: invalid reference to the index variable of the iterator on line 1553 /home/cocci/testing/drivers/net/wireless/ath/ath11k/dp_rx.c:4407:3-6: ERROR: invalid reference to the index variable of the iterator on line 4397 /home/cocci/testing/drivers/net/wireless/ath/ath11k/dp_rx.c:4407:29-32: ERROR: invalid reference to the index variable of the iterator on line 4397 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3962:3-6: ERROR: invalid reference to the index variable of the iterator on line 3952 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3962:29-32: ERROR: invalid reference to the index variable of the iterator on line 3952 /home/cocci/testing/drivers/net/wireless/ath/ath12k/wmi.c:7402:30-35: ERROR: invalid reference to the index variable of the iterator on line 7384 /home/cocci/testing/net/ipv4/inet_connection_sock.c:424:1-7: preceding lock on line 386 /home/cocci/testing/net/ipv4/inet_connection_sock.c:608:1-7: preceding lock on line 571 /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/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:120:6-9: 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/wireless/realtek/rtlwifi/wifi.h:1262:6-11: 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/lib/vsprintf.c:2712:33-34: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/lib/vsprintf.c:2719:33-34: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/lib/vsprintf.c:2722:34-35: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/lib/vsprintf.c:2725:32-33: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:102:5-8: Unneeded variable: "ret". Return "0" on line 105 /home/cocci/testing/drivers/net/wireless/realtek/rtlwifi/pci.c:864:13-16: Unneeded variable: "ret". Return "IRQ_HANDLED" on line 867 /home/cocci/testing/drivers/net/wireless/realtek/rtw89/pci.c:332:5-8: Unneeded variable: "cnt". Return "1" on line 393 /home/cocci/testing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c:487:41-45: ERROR: ( * ifp ) is NULL but dereferenced.