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:5586:6-25: WARNING: atomic_dec_and_test variation before object free at line 5593. 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/wireless/ath/ath12k/wmi.c:7398:30-35: ERROR: invalid reference to the index variable of the iterator on line 7380 /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/ath/ath12k/dp_rx.c:3958:3-6: ERROR: invalid reference to the index variable of the iterator on line 3948 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3958:29-32: ERROR: invalid reference to the index variable of the iterator on line 3948 /home/cocci/testing/drivers/net/wireless/realtek/rtw89/mac80211.c:1381:2-8: preceding lock on line 1374 /home/cocci/testing/net/ethtool/ioctl.c:1607:1-7: preceding lock on line 1462 /home/cocci/testing/net/smc/af_smc.c:2554:0-1: preceding lock on line 2481 /home/cocci/testing/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:4474:1-7: preceding lock on line 4376 /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.h:42:52-57: WARNING: conversion to bool not needed here /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.h:47:54-59: WARNING: conversion to bool not needed here /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.h:52:51-56: WARNING: conversion to bool not needed here /home/cocci/testing/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:2769:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_ul instead. /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/ath/ath6kl/wmi.h:1648: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/ath/ath6kl/wmi.h:2161:18-28: 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/ath/ath6kl/wmi.h:2298: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/intel/ipw2x00/libipw_rx.c:871:32-33: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/intel/ipw2x00/libipw_rx.c:886:32-33: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1480:14-15: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1483:24-25: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1484:24-25: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1485:14-15: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1488:35-36: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1489:35-36: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1490:14-15: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1493:24-25: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1494:24-25: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1495:14-15: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1501:35-36: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_mon.c:1244:24-34: Unneeded variable: "hal_status". Return "HAL_RX_MON_STATUS_BUF_DONE" on line 1260 /home/cocci/testing/drivers/net/wireless/realtek/rtw89/pci.c:332:5-8: Unneeded variable: "cnt". Return "1" on line 393 /home/cocci/testing/net/ipv4/igmp.c:597:12-21: ERROR: pmc is NULL but dereferenced. /home/cocci/testing/drivers/net/wireless/ath/ath9k/ar9003_aic.c:115:42-46: duplicated argument to & or | /home/cocci/testing/drivers/net/wireless/ath/ath9k/ar9003_aic.c:116:3-7: duplicated argument to & or | /home/cocci/testing/drivers/net/wireless/ath/ath9k/ar9003_aic.c:117:42-46: duplicated argument to & or | /home/cocci/testing/drivers/net/wireless/ath/ath9k/ar9003_aic.c:118:3-7: duplicated argument to & or | /home/cocci/testing/drivers/net/wireless/ath/ath9k/ar9003_aic.c:119:42-46: duplicated argument to & or | /home/cocci/testing/drivers/net/wireless/ath/ath9k/ar9003_aic.c:120:3-7: duplicated argument to & or | /home/cocci/testing/drivers/pci/pci.c:6885:6-10: duplicated argument to && or ||