net: fib_rules: fix error code for unsupported families
authorPatrick McHardy <kaber@trash.net>
Wed, 2 Jul 2008 02:59:37 +0000 (19:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jul 2008 02:59:37 +0000 (19:59 -0700)
commit2fe195cfe3e53c144d247b2768e37732e8eae4d8
tree5184938031f0caaa11e6668ea9aa8a121ef682e1
parent93b3cff9915322d6fa36bac0064714a7076230e4
net: fib_rules: fix error code for unsupported families

The errno code returned must be negative.

Fixes "RTNETLINK answers: Unknown error 18446744073709551519".

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c