Skip to content
Commit 7bcb0a25 authored by Justin Chen's avatar Justin Chen Committed by Greg Kroah-Hartman
Browse files

net: bcmasp: Sanity check is off by one

[ Upstream commit f120e62e ]

A sanity check for OOB write is off by one leading to a false positive
when the array is full.

Fixes: 9b90aca9

 ("net: ethernet: bcmasp: fix possible OOB write in bcmasp_netfilt_get_all_active()")
Signed-off-by: default avatarJustin Chen <justin.chen@broadcom.com>
Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ae24a16a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment