aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorStefano Brivio <[email protected]>2017-08-31 18:11:41 +0200
committerDavid S. Miller <[email protected]>2017-09-03 10:54:27 -0700
commit64327fc811268d4a24de03dac242ea29de6be75f (patch)
tree8e91ed6bde230252c4225219153af5a1682f8544 /lib/memory-notifier-error-inject.c
parent138e4ad67afd5c6c318b056b4d17c17f2c0ca5c0 (diff)
ipv4: Don't override return code from ip_route_input_noref()
After ip_route_input() calls ip_route_input_noref(), another check on skb_dst() is done, but if this fails, we shouldn't override the return code from ip_route_input_noref(), as it could have been more specific (i.e. -EHOSTUNREACH). This also saves one call to skb_dst_force_safe() and one to skb_dst() in case the ip_route_input_noref() check fails. Reported-by: Sabrina Dubroca <[email protected]> Fixes: 9df16efadd2a ("ipv4: call dst_hold_safe() properly") Signed-off-by: Stefano Brivio <[email protected]> Acked-by: Wei Wang <[email protected]> Acked-by: Sabrina Dubroca <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions