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/ethernet/broadcom/bnxt/bnxt.c:5616:6-25: WARNING: atomic_dec_and_test variation before object free at line 5623. /home/cocci/testing/net/netfilter/ipvs/ip_vs_ctl.c:528:5-24: WARNING: atomic_dec_and_test variation before object free at line 533. 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/io_uring/net.c:183:3-8: WARNING: NULL check before some freeing functions is not needed. /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c:469:38-45: ERROR: invalid reference to the index variable of the iterator on line 460 /home/cocci/testing/drivers/net/wireless/ath/ath10k/mac.c:512:22-26: ERROR: invalid reference to the index variable of the iterator on line 498 /home/cocci/testing/drivers/net/wireless/broadcom/b43/main.c:4336:2-8: preceding lock on line 4369 /home/cocci/testing/drivers/net/wireless/broadcom/b43/main.c:4347:2-8: preceding lock on line 4343 /home/cocci/testing/drivers/net/wireless/broadcom/b43/main.c:4372:2-8: preceding lock on line 4369 /home/cocci/testing/drivers/net/wireless/ti/wlcore/main.c:2441:1-7: preceding lock on line 2411 /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/fw/api/rx.h:640:8-16: 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/intel/iwlwifi/fw/api/d3.h:943:4-15: 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/atmel/at76c50x-usb.h:118:4-12: 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/intel/iwlwifi/pcie/internal.h:112:4-12: 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/intel/iwlwifi/pcie/trans.c:57:51-52: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/pcie/trans.c:58:55-56: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/pcie/trans.c:59:58-59: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtl8xxxu/core.c:6749:30-31: WARNING opportunity for swap() /home/cocci/testing/drivers/net/wireless/ath/ath12k/mac.c:8318:16-26: ERROR: sband is NULL but dereferenced.