New warnings added --- /home/cocci/outputs/results/859042/old-filtered 2024-11-13 17:27:22.324968744 -0800 +++ /home/cocci/outputs/results/859042/new-filtered 2024-11-13 17:27:22.344968858 -0800 @@ -5 +5,2 @@ -/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. +/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:5592:6-25: WARNING: atomic_dec_and_test variation before object free at line 5599. @@ -11 +12,4 @@ -/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/wmi.c:7402:30-35: ERROR: invalid reference to the index variable of the iterator on line 7384 +/home/cocci/testing/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:687:1-6: ERROR: invalid reference to the index variable of the iterator on line 665 +/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 @@ -13,4 +17 @@ -/home/cocci/testing/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:686:1-6: ERROR: invalid reference to the index variable of the iterator on line 664 -/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/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/ath/ath10k/mac.c:512:22-26: ERROR: invalid reference to the index variable of the iterator on line 498 @@ -18,4 +19,3 @@ -/home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:4019:1-7: preceding lock on line 3994 -/home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9309:2-8: preceding lock on line 9289 -/home/cocci/testing/net/ethtool/ioctl.c:1607:1-7: preceding lock on line 1462 -/home/cocci/testing/drivers/net/wireless/realtek/rtw89/mac80211.c:1381:2-8: preceding lock on line 1374 +/home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:3997:1-7: preceding lock on line 3972 +/home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9340:2-8: preceding lock on line 9320 +/home/cocci/testing/net/ethtool/ioctl.c:1612:1-7: preceding lock on line 1467 @@ -23 +22,0 @@ -/home/cocci/testing/net/smc/af_smc.c:2554:0-1: preceding lock on line 2481 @@ -28 +26,0 @@ -/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) @@ -32,2 +30 @@ -/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/intel/iwlwifi/fw/api/d3.h:1002:4-15: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) @@ -37,11 +34,13 @@ -/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/intel/ipw2x00/libipw_rx.c:871:34-35: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/intel/ipw2x00/libipw_rx.c:886:34-35: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1504:14-15: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1507:24-25: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1508:24-25: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1509:14-15: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1512:35-36: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1513:35-36: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1514:14-15: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1517:24-25: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1518:24-25: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1519:14-15: WARNING: sum of probable bitmasks, consider | +/home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1525:35-36: WARNING: sum of probable bitmasks, consider | @@ -49,2 +48,2 @@ -/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/net/ipv4/igmp.c:597:12-21: ERROR: pmc is NULL but dereferenced. +/home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_mon.c:1251:24-34: Unneeded variable: "hal_status". Return "HAL_RX_MON_STATUS_BUF_DONE" on line 1267 +/home/cocci/testing/net/ipv4/igmp.c:598:12-21: ERROR: pmc is NULL but dereferenced. Per-file breakdown --- /tmp/tmp.rmE2ALhOEx 2024-11-13 17:27:22.354968915 -0800 +++ /tmp/tmp.4b6VevUAhF 2024-11-13 17:27:22.354968915 -0800 @@ -10,0 +11 @@ + 1 /drivers/net/wireless/ath/ath12k/mac.c @@ -20 +20,0 @@ - 1 /drivers/net/wireless/realtek/rtw89/mac80211.c @@ -24 +23,0 @@ - 1 /net/smc/af_smc.c