Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
00f3b009
Commit
00f3b009
authored
Apr 28, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/acme/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
8fa508b5
57a66fa5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
drivers/net/pppox.c
drivers/net/pppox.c
+2
-5
net/socket.c
net/socket.c
+2
-2
No files found.
drivers/net/pppox.c
View file @
00f3b009
...
...
@@ -149,11 +149,8 @@ static int pppox_create(struct socket *sock, int protocol)
goto
out
;
rc
=
-
EPROTONOSUPPORT
;
if
(
!
pppox_protos
[
protocol
])
goto
out
;
rc
=
-
EBUSY
;
if
(
!
try_module_get
(
pppox_protos
[
protocol
]
->
owner
))
if
(
!
pppox_protos
[
protocol
]
||
!
try_module_get
(
pppox_protos
[
protocol
]
->
owner
))
goto
out
;
rc
=
pppox_protos
[
protocol
]
->
create
(
sock
);
...
...
net/socket.c
View file @
00f3b009
...
...
@@ -1091,7 +1091,7 @@ int sock_create(int family, int type, int protocol, struct socket **res)
sock
->
type
=
type
;
i
=
-
E
BUSY
;
i
=
-
E
AFNOSUPPORT
;
if
(
!
net_family_get
(
family
))
goto
out_release
;
...
...
@@ -1288,7 +1288,7 @@ asmlinkage long sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_a
if
(
err
)
goto
out_release
;
err
=
-
E
BUSY
;
err
=
-
E
AFNOSUPPORT
;
if
(
!
net_family_get
(
sock
->
ops
->
family
))
goto
out_release
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment