]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix fib notifer to return errno
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 28 Mar 2018 01:21:55 +0000 (18:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 18:10:30 +0000 (14:10 -0400)
commite31e3ab12f21b4cb2197f5c90e7b9629e6125af9
treeb0bc0dbf1c2a9598341ccf9761f3092e3fa1e64f
parent7d32f1124c5d89949d6ee78c65d1381927a54f6f
net: Fix fib notifer to return errno

Notifier handlers use notifier_from_errno to convert any potential error
to an encoded format. As a consequence the other side, call_fib_notifier{s}
in this case, needs to use notifier_to_errno to return the error from
the handler back to its caller.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_notifier.c