DECNET: dn_nl_deladdr() almost always returns no error
commitda027ec9500791ee49b3301d8ed7f12011d535e2
authorPavel Emelyanov <xemul@openvz.org>
Tue, 11 Dec 2007 01:39:32 +0000 (11 09:39 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 17:51:06 +0000 (14 09:51 -0800)
tree9d51f477c1b84a3b3af62f3a9fb61262b0ca8b20
parentc8ddbf107012e54c432ba85192d18e873b8af1e5
DECNET: dn_nl_deladdr() almost always returns no error

[DECNET]: dn_nl_deladdr() almost always returns no error

[ Upstream commit: 3ccd86241b277249d5ac08e91eddfade47184520 ]

As far as I see from the err variable initialization
the dn_nl_deladdr() routine was designed to report errors
like "EADDRNOTAVAIL" and probaby "ENODEV".

But the code sets this err to 0 after the first nlmsg_parse
and goes on, returning this 0 in any case.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/decnet/dn_dev.c