Commit fba0dab2 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[NETLINK]: Return err in netlink_connect.

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 7c624149
...@@ -386,7 +386,7 @@ static int netlink_connect(struct socket *sock, struct sockaddr *addr, ...@@ -386,7 +386,7 @@ static int netlink_connect(struct socket *sock, struct sockaddr *addr,
nlk->dst_groups = nladdr->nl_groups; 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) static int netlink_getname(struct socket *sock, struct sockaddr *addr, int *addr_len, int peer)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment