Coverity-updates archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
New Defects reported by Coverity Scan for NetBSD-amd64-kernel
Hi,
Please find the latest report on new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.
1 new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1373272: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
/sys/dev/usb/if_run.c: 2502 in run_tx()
________________________________________________________________________________________________________
*** CID 1373272: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
/sys/dev/usb/if_run.c: 2502 in run_tx()
2496 if (rt2860_rates[ridx].phy == IEEE80211_T_DS) {
2497 txwi->phy = htole16(RT2860_PHY_CCK);
2498 if (ridx != RT2860_RIDX_CCK1 &&
2499 (ic->ic_flags & IEEE80211_F_SHPREAMBLE))
2500 mcs |= RT2860_PHY_SHPRE;
2501 } else
>>> CID 1373272: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
>>> In "mcs |= 16384U /* 1U << 14 */", wider "16384U /* 1U << 14 */" has high-order bits (0x4000) that don't affect the narrower left-hand side.
2502 mcs |= RT2860_PHY_OFDM;
2503 txwi->phy |= htole16(mcs);
2504
2505 txwi->txop = RT2860_TX_TXOP_BACKOFF;
2506
2507 if (!IEEE80211_IS_MULTICAST(wh->i_addr1) &&
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRb2JZfDAOAZcqzsy8LMBKBj0qtSICo2DZNjmmsVjYof54PahgUQ7xLRwU5wjlAON3Q-3D_XWm3CUIFU8ffmjzuNhQ8cIHoQgXzXkm61Fmjr59D05WZDmCTCmI77MhSMWd-2B0wxfRloeXYImyXC-2F09cRciy7vvaU0wtL47hJmPjopnJRAvAkhZoz-2Fl-2F-2BXkDpREN-2F-2FpxuLmB-2BtYfY37X2Y-2FBQij6Fmrqc83pKiMCTJrEWkSNEQv9HagzHONK4rnI-2Ft28Ga2ChzZe7-2FLW29C3TBzcJ6oXEDCAHhz-2Bf4j0LmI6JqlojRkM-3D
To manage Coverity Scan email notifications for "coverity-updates%netbsd.org@localhost", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4m7U7Yoel-2F6MYPxol7ToiLwYIjoNbVQOCAwEeTNJofEDwTlN0JRhKMyijhpnAObR-2FlLVG-2Fr3EBKWgiICNdX1HPA6Ws0-2F1wHBf2tG9AnMDB8g-3D_XWm3CUIFU8ffmjzuNhQ8cIHoQgXzXkm61Fmjr59D05WZDmCTCmI77MhSMWd-2B0wxfRloeXYImyXC-2F09cRciy7vkOJIyx-2Fon30OOMGdqJOx8mJP349Zeym9A4eaPprecTCrUe8qActMPHup3eQechSikCUvGu40XAAxviCEXP4fa4MsIajDwACeWDgSybwi-2FVJEQA7P6VwzM6JpFdVp2Y9TrbHa33nRS0Vd7R2K7eRJ3I-3D
Home |
Main Index |
Thread Index |
Old Index