diff options
| author | David Wei <[email protected]> | 2024-06-06 14:59:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-06-10 10:51:04 +0000 |
| commit | 5add2f7288468f35a374620dabf126c13baaea9c (patch) | |
| tree | 339666a05cbfd21809538d016bc81df4f4d19e6c /net/ipv6/tcp_ipv6.c | |
| parent | net: stmmac: dwmac-qcom-ethqos: Configure host DMA width (diff) | |
| download | kernel-5add2f7288468f35a374620dabf126c13baaea9c.tar.gz kernel-5add2f7288468f35a374620dabf126c13baaea9c.zip | |
netdevsim: fix backwards compatibility in nsim_get_iflink()
The default ndo_get_iflink() implementation returns the current ifindex
of the netdev. But the overridden nsim_get_iflink() returns 0 if the
current nsim is not linked, breaking backwards compatibility for
userspace that depend on this behaviour.
Fix the problem by returning the current ifindex if not linked to a
peer.
Fixes: 8debcf5832c3 ("netdevsim: add ndo_get_iflink() implementation")
Reported-by: Yu Watanabe <[email protected]>
Suggested-by: Yu Watanabe <[email protected]>
Signed-off-by: David Wei <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
