aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorVlad Buslov <[email protected]>2021-02-11 10:07:59 +0000
committerDavid S. Miller <[email protected]>2021-02-11 22:42:43 +0000
commit6f1995523a0fac7dd4fc7d2f175604dd9f699338 (patch)
tree0d1015a35cf1775a7f462b954acb509423461c5b /drivers/net/xen-netback/interface.c
parentMerge tag 'mlx5-for-upstream-2021-02-10' of git://git.kernel.org/pub/scm/linu... (diff)
downloadkernel-6f1995523a0fac7dd4fc7d2f175604dd9f699338.tar.gz
kernel-6f1995523a0fac7dd4fc7d2f175604dd9f699338.zip
net: fib_notifier: don't return positive values on fib registration
The function fib6_walk_continue() cannot return a positive value when called from register_fib_notifier(), but ignoring causes static analyzer to generate warnings in users of register_fib_notifier() that try to convert returned error code to pointer with ERR_PTR(). Handle such case by explicitly checking for positive error values and converting them to -EINVAL in fib6_tables_dump(). Reported-by: Dan Carpenter <[email protected]> Suggested-by: Ido Schimmel <[email protected]> Signed-off-by: Vlad Buslov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions