]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PKT_SCHED: Fix error handling while dumping actions
authorThomas Graf <tgraf@suug.ch>
Tue, 7 Nov 2006 14:30:21 +0000 (15:30 +0100)
committerAdrian Bunk <bunk@stusta.de>
Tue, 7 Nov 2006 14:30:21 +0000 (15:30 +0100)
commit118d32a5f209230c66a3b7d3874d1d5846ceb630
treee690a3e7e594965a1afbbb528f7933965c44ce54
parentf0524af06cf2243c6bebd7a18fe9876da33b0a08
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: Adrian Bunk <bunk@stusta.de>
net/sched/act_api.c