diff options
author | Vlad Buslov <vladbu@nvidia.com> | 2021-02-11 12:07:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-11 14:42:43 -0800 |
commit | 6f1995523a0fac7dd4fc7d2f175604dd9f699338 (patch) | |
tree | 0d1015a35cf1775a7f462b954acb509423461c5b /drivers/xen/pvcalls-back.c | |
parent | 9f1b0df7b29b26290530985a4dfc7b99c67e9253 (diff) |
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 <dan.carpenter@oracle.com>
Suggested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/xen/pvcalls-back.c')
0 files changed, 0 insertions, 0 deletions