* [NETLINK] Return err in netlink_connect
@ 2004-06-30 11:41 Herbert Xu
2004-07-05 22:47 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Herbert Xu @ 2004-06-30 11:41 UTC (permalink / raw)
To: David S. Miller, Alexey Kuznetsov, netdev
[-- Attachment #1: Type: text/plain, Size: 583 bytes --]
Hi:
This patch makes netlink_connect() return the value of err instead of 0.
It doesn't actually make any difference since the current implementation
of netlink_autobind() never fails. But since we went to all this trouble
to check the return status of autobind, might as well return the correct
value :)
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[-- Attachment #2: p --]
[-- Type: text/plain, Size: 370 bytes --]
===== net/netlink/af_netlink.c 1.49 vs edited =====
--- 1.49/net/netlink/af_netlink.c 2004-06-30 21:28:39 +10:00
+++ edited/net/netlink/af_netlink.c 2004-06-30 21:36:36 +10:00
@@ -386,7 +386,7 @@
nlk->dst_groups = nladdr->nl_groups;
}
- return 0;
+ return err;
}
static int netlink_getname(struct socket *sock, struct sockaddr *addr, int *addr_len, int peer)
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [NETLINK] Return err in netlink_connect
2004-06-30 11:41 [NETLINK] Return err in netlink_connect Herbert Xu
@ 2004-07-05 22:47 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-07-05 22:47 UTC (permalink / raw)
To: Herbert Xu; +Cc: kuznet, netdev
On Wed, 30 Jun 2004 21:41:44 +1000
Herbert Xu <herbert@gondor.apana.org.au> wrote:
> This patch makes netlink_connect() return the value of err instead of 0.
> It doesn't actually make any difference since the current implementation
> of netlink_autobind() never fails. But since we went to all this trouble
> to check the return status of autobind, might as well return the correct
> value :)
>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied, thanks Herbert.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-05 22:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-30 11:41 [NETLINK] Return err in netlink_connect Herbert Xu
2004-07-05 22:47 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).