]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4] Fix EPROTONOSUPPORT error in inet_create
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 3 Dec 2005 04:43:26 +0000 (20:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Dec 2005 04:43:26 +0000 (20:43 -0800)
commit198fabaa59398131022c2113357fc0f39e0380c4
tree2c68c64d7fa7387700354cd24ba07486bd00104e
parent09b58c80b3438a65864ae21b52c15925390b59c6
[IPV4] Fix EPROTONOSUPPORT error in inet_create

There is a coding error in inet_create that causes it to always return
ESOCKTNOSUPPORT.  It should return EPROTONOSUPPORT when there are
protocols registered for a given socket type but none of them match
the requested protocol.

This is based on a patch by Jayachandran C.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c