diff options
author | 2023-10-06 13:58:22 +0200 | |
---|---|---|
committer | 2023-10-10 11:12:01 +0200 | |
commit | 59fe651753fb897ebe0ac91c19cf503e7a551632 (patch) | |
tree | 3b70005a3038b8d30c29084d1d1c9be4378f4f87 /drivers/net/macsec.c | |
parent | Merge branch 'tcp-save-flowlabel-and-use-for-receiver-repathing' (diff) | |
download | wireguard-linux-59fe651753fb897ebe0ac91c19cf503e7a551632.tar.xz wireguard-linux-59fe651753fb897ebe0ac91c19cf503e7a551632.zip |
net: dsa: microchip: Fix uninitialized var in ksz9477_acl_move_entries()
Address an issue in ksz9477_acl_move_entries() where, in the scenario
(src_idx == dst_idx), ksz9477_validate_and_get_src_count() returns 0,
leading to usage of uninitialized src_count and dst_count variables,
which causes undesired behavior as it attempts to move ACL entries
around.
Fixes: 002841be134e ("net: dsa: microchip: Add partial ACL support for ksz9477 switches")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20231006115822.144152-1-o.rempel@pengutronix.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/macsec.c')
0 files changed, 0 insertions, 0 deletions