]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: renesas: rswitch: Fix the output value of quote from rswitch_rx()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 15 Mar 2023 07:04:23 +0000 (16:04 +0900)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:18 +0000 (13:33 +0200)
commitc9469af5c3aaa77d272d5a42db531c94d4112108
treec114648b8c93946b2dc45ba2372f88e3aa45f598
parent9759df76d8cfa18f8a1c1ecdc8d5c418bcdb9832
net: renesas: rswitch: Fix the output value of quote from rswitch_rx()

BugLink: https://bugs.launchpad.net/bugs/2016876
[ Upstream commit e05bb97d9c9dd4ba5739a27921044c935a7fb3be ]

If the RX descriptor doesn't have any data, the output value of quote
from rswitch_rx() will be increased unexpectedily. So, fix it.

Reported-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/renesas/rswitch.c