bpf: Omit superfluous address family check in __bpf_skc_lookup
[ Upstream commit 2064a132 ] family is only set to either AF_INET or AF_INET6 based on len. In all other cases we return early. Thus the check against AF_UNSPEC can be omitted. Signed-off-by:Tobias Klauser <tklauser@distanz.ch> Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220630082618.15649-1-tklauser@distanz.ch Stable-dep-of: 9a5cb797 ("bpf: Fix bpf socket lookup from tc/xdp to respect socket VRF bindings") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading