PKT_SCHED: Fix error handling while dumping actions
commit07d1f3a0037a0e4b1b1aff13d97180189148f4f4
authorThomas Graf <tgraf@suug.ch>
Thu, 6 Jul 2006 03:58:51 +0000 (5 20:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Jul 2006 03:35:22 +0000 (24 20:35 -0700)
tree4089ef3e335fc0a46e7d60e5c738af31f0bad0fd
parent0a5bad5657163f8f44f6220929a70acf297d3dd5
PKT_SCHED: Fix error handling while dumping actions

"return -err" and blindly inheriting the error code in the netlink
failure exception handler causes errors codes to be returned as
positive value therefore making them being ignored by the caller.

May lead to sending out incomplete netlink messages.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/act_api.c