aboutsummaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorGravatar xu xin <xu.xin16@zte.com.cn> 2023-08-07 01:54:08 +0000
committerGravatar Jakub Kicinski <kuba@kernel.org> 2023-08-08 15:35:51 -0700
commitc67180efc507e04a87f22aa68bd7dd832db006b7 (patch)
treeaa0dc43aa734f5c3bb4e30544e80586cf0d59e42 /net/ipv6
parentMerge branch 'net-renesas-rswitch-add-speed-change-support' (diff)
downloadlinux-c67180efc507e04a87f22aa68bd7dd832db006b7.tar.gz
linux-c67180efc507e04a87f22aa68bd7dd832db006b7.tar.bz2
linux-c67180efc507e04a87f22aa68bd7dd832db006b7.zip
net/ipv4: return the real errno instead of -EINVAL
For now, No matter what error pointer ip_neigh_for_gw() returns, ip_finish_output2() always return -EINVAL, which may mislead the upper users. For exemple, an application uses sendto to send an UDP packet, but when the neighbor table overflows, sendto() will get a value of -EINVAL, and it will cause users to waste a lot of time checking parameters for errors. Return the real errno instead of -EINVAL. Signed-off-by: xu xin <xu.xin16@zte.com.cn> Reviewed-by: Yang Yang <yang.yang29@zte.com.cn> Cc: Si Hao <si.hao@zte.com.cn> Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://lore.kernel.org/r/20230807015408.248237-1-xu.xin16@zte.com.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions