···186186 */187187 u8 __iomem *pkts_sent_reg;188188189189- /* Statistics for this OQ. */190190- struct octep_oq_stats stats;189189+ /* Pointer to statistics for this OQ. */190190+ struct octep_oq_stats *stats;191191192192 /* Packets pending to be processed */193193 u32 pkts_pending;
···170170 */171171 u16 flush_index;172172173173- /* Statistics for this input queue. */174174- struct octep_iq_stats stats;173173+ /* Pointer to statistics for this input queue. */174174+ struct octep_iq_stats *stats;175175176176 /* Pointer to the Virtual Base addr of the input ring. */177177 struct octep_tx_desc_hw *desc_ring;
···129129 u16 flush_index;130130131131 /* Statistics for this input queue. */132132- struct octep_vf_iq_stats stats;132132+ struct octep_vf_iq_stats *stats;133133134134 /* Pointer to the Virtual Base addr of the input ring. */135135 struct octep_vf_tx_desc_hw *desc_ring;
···22822282 for (i = 0; i < common->tx_ch_num; i++) {22832283 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[i];2284228422852285- if (tx_chn->irq)22852285+ if (tx_chn->irq > 0)22862286 devm_free_irq(dev, tx_chn->irq, tx_chn);2287228722882288 netif_napi_del(&tx_chn->napi_tx);
+14-15
drivers/net/phy/realtek/realtek_main.c
···971971{972972 int lpadv, ret;973973974974+ mii_10gbt_stat_mod_linkmode_lpa_t(phydev->lp_advertising, 0);975975+974976 ret = rtlgen_read_status(phydev);975977 if (ret < 0)976978 return ret;977979978980 if (phydev->autoneg == AUTONEG_DISABLE ||979979- !phydev->autoneg_complete) {980980- mii_10gbt_stat_mod_linkmode_lpa_t(phydev->lp_advertising, 0);981981+ !phydev->autoneg_complete)981982 return 0;982982- }983983984984 lpadv = phy_read_paged(phydev, 0xa5d, 0x13);985985 if (lpadv < 0)···10421042{10431043 int ret, val;1044104410451045- ret = genphy_c45_read_status(phydev);10461046- if (ret < 0)10471047- return ret;10481048-10491049- if (phydev->autoneg == AUTONEG_DISABLE ||10501050- !genphy_c45_aneg_done(phydev))10511051- mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, 0);10521052-10531045 /* Vendor register as C45 has no standardized support for 1000BaseT */10541054- if (phydev->autoneg == AUTONEG_ENABLE) {10461046+ if (phydev->autoneg == AUTONEG_ENABLE && genphy_c45_aneg_done(phydev)) {10551047 val = phy_read_mmd(phydev, MDIO_MMD_VEND2,10561048 RTL822X_VND2_GANLPAR);10571049 if (val < 0)10581050 return val;10591059-10601060- mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, val);10511051+ } else {10521052+ val = 0;10611053 }10541054+ mii_stat1000_mod_linkmode_lpa_t(phydev->lp_advertising, val);1062105510631063- if (!phydev->link)10561056+ ret = genphy_c45_read_status(phydev);10571057+ if (ret < 0)10581058+ return ret;10591059+10601060+ if (!phydev->link) {10611061+ phydev->master_slave_state = MASTER_SLAVE_STATE_UNKNOWN;10641062 return 0;10631063+ }1065106410661065 /* Read actual speed from vendor register. */10671066 val = phy_read_mmd(phydev, MDIO_MMD_VEND2, RTL_VND2_PHYSR);
···9191 pm_runtime_get_sync(dev->dev.parent);92929393 if (!netif_device_present(dev) ||9494- dev->reg_state == NETREG_UNREGISTERING) {9494+ dev->reg_state >= NETREG_UNREGISTERING) {9595 ret = -ENODEV;9696 goto err;9797 }
+5-3
net/ipv4/tcp_cubic.c
···392392 if (after(tp->snd_una, ca->end_seq))393393 bictcp_hystart_reset(sk);394394395395+ /* hystart triggers when cwnd is larger than some threshold */396396+ if (tcp_snd_cwnd(tp) < hystart_low_window)397397+ return;398398+395399 if (hystart_detect & HYSTART_ACK_TRAIN) {396400 u32 now = bictcp_clock_us(sk);397401···471467 if (ca->delay_min == 0 || ca->delay_min > delay)472468 ca->delay_min = delay;473469474474- /* hystart triggers when cwnd is larger than some threshold */475475- if (!ca->found && tcp_in_slow_start(tp) && hystart &&476476- tcp_snd_cwnd(tp) >= hystart_low_window)470470+ if (!ca->found && tcp_in_slow_start(tp) && hystart)477471 hystart_update(sk, delay);478472}479473
+8-8
net/rose/af_rose.c
···397397{398398 struct sock *sk = sock->sk;399399 struct rose_sock *rose = rose_sk(sk);400400- int opt;400400+ unsigned int opt;401401402402 if (level != SOL_ROSE)403403 return -ENOPROTOOPT;404404405405- if (optlen < sizeof(int))405405+ if (optlen < sizeof(unsigned int))406406 return -EINVAL;407407408408- if (copy_from_sockptr(&opt, optval, sizeof(int)))408408+ if (copy_from_sockptr(&opt, optval, sizeof(unsigned int)))409409 return -EFAULT;410410411411 switch (optname) {···414414 return 0;415415416416 case ROSE_T1:417417- if (opt < 1)417417+ if (opt < 1 || opt > UINT_MAX / HZ)418418 return -EINVAL;419419 rose->t1 = opt * HZ;420420 return 0;421421422422 case ROSE_T2:423423- if (opt < 1)423423+ if (opt < 1 || opt > UINT_MAX / HZ)424424 return -EINVAL;425425 rose->t2 = opt * HZ;426426 return 0;427427428428 case ROSE_T3:429429- if (opt < 1)429429+ if (opt < 1 || opt > UINT_MAX / HZ)430430 return -EINVAL;431431 rose->t3 = opt * HZ;432432 return 0;433433434434 case ROSE_HOLDBACK:435435- if (opt < 1)435435+ if (opt < 1 || opt > UINT_MAX / HZ)436436 return -EINVAL;437437 rose->hb = opt * HZ;438438 return 0;439439440440 case ROSE_IDLE:441441- if (opt < 0)441441+ if (opt > UINT_MAX / (60 * HZ))442442 return -EINVAL;443443 rose->idle = opt * 60 * HZ;444444 return 0;
+4
net/sched/sch_api.c
···16641664 q = qdisc_lookup(dev, tcm->tcm_handle);16651665 if (!q)16661666 goto create_n_graft;16671667+ if (q->parent != tcm->tcm_parent) {16681668+ NL_SET_ERR_MSG(extack, "Cannot move an existing qdisc to a different parent");16691669+ return -EINVAL;16701670+ }16671671 if (n->nlmsg_flags & NLM_F_EXCL) {16681672 NL_SET_ERR_MSG(extack, "Exclusivity flag on, cannot override");16691673 return -EEXIST;