]> git.baikalelectronics.ru Git - kernel.git/commit
X25: Fix x25_create errors for bad protocol and ENOBUFS
authorandrew hendry <andrew.hendry@gmail.com>
Sun, 14 Feb 2010 02:00:11 +0000 (02:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 05:49:51 +0000 (21:49 -0800)
commit2b6bb8ed22df48521c75404c512bedf15bc2a589
treeabf2e7f6705e6043815edecd6d8fc0cec4c582f5
parentcf820f03184f2b5881590118ee8a8be85976d78c
X25: Fix x25_create errors for bad protocol and ENOBUFS

alloc_socket failures should return -ENOBUFS
a bad protocol should return -EINVAL

Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/x25/af_x25.c