[PKT_SCHED]: Fix error handling while dumping actions
authorThomas Graf <tgraf@suug.ch>
Thu, 6 Jul 2006 03:47:28 +0000 (20:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jul 2006 03:47:28 +0000 (20:47 -0700)
commit4fe683f50d3fc8e36d4749277631dfc711393aa0
tree0843a4082dc39cb70f48f4c4691ff310fd1bc39e
parentd152b4e1e9a18f332ecd9e66492d706edc083345
[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>
net/sched/act_api.c