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
bd2c9a34
Commit
bd2c9a34
authored
Sep 20, 2002
by
Arnaldo Carvalho de Melo
Committed by
David S. Miller
Sep 20, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LLC] kill llc_ui_bh_find_sk_by_addr
We can just use llc_lookup_established, one less user of llc_ui_sockets.
parent
8e5f8471
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
net/llc/llc_sock.c
net/llc/llc_sock.c
+1
-15
No files found.
net/llc/llc_sock.c
View file @
bd2c9a34
...
@@ -201,20 +201,6 @@ static struct sock *llc_ui_find_sk_by_addr(struct llc_addr *addr,
...
@@ -201,20 +201,6 @@ static struct sock *llc_ui_find_sk_by_addr(struct llc_addr *addr,
return
sk
;
return
sk
;
}
}
static
struct
sock
*
llc_ui_bh_find_sk_by_addr
(
struct
llc_addr
*
addr
,
struct
llc_addr
*
daddr
,
struct
net_device
*
dev
)
{
struct
sock
*
sk
;
read_lock_bh
(
&
llc_ui_sockets_lock
);
sk
=
__llc_ui_find_sk_by_addr
(
addr
,
daddr
,
dev
);
if
(
sk
)
sock_hold
(
sk
);
read_unlock_bh
(
&
llc_ui_sockets_lock
);
return
sk
;
}
/**
/**
* llc_ui_insert_socket - insert socket into list
* llc_ui_insert_socket - insert socket into list
* @sk: Socket to insert.
* @sk: Socket to insert.
...
@@ -422,7 +408,7 @@ static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr)
...
@@ -422,7 +408,7 @@ static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr)
memcpy
(
laddr
.
mac
,
addr
->
sllc_smac
,
IFHWADDRLEN
);
memcpy
(
laddr
.
mac
,
addr
->
sllc_smac
,
IFHWADDRLEN
);
laddr
.
lsap
=
addr
->
sllc_ssap
;
laddr
.
lsap
=
addr
->
sllc_ssap
;
rc
=
-
EADDRINUSE
;
/* mac + sap clash. */
rc
=
-
EADDRINUSE
;
/* mac + sap clash. */
ask
=
llc_
ui_bh_find_sk_by_addr
(
&
laddr
,
&
daddr
,
dev
);
ask
=
llc_
lookup_established
(
sap
,
&
daddr
,
&
laddr
);
if
(
ask
)
{
if
(
ask
)
{
sock_put
(
ask
);
sock_put
(
ask
);
goto
out
;
goto
out
;
...
...
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