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
Kirill Smelkov
linux
Commits
9301e320
Commit
9301e320
authored
Sep 28, 2005
by
Chas Williams
Committed by
David S. Miller
Sep 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: track and close listen sockets when sigd exits
Signed-off-by:
Chas Williams
<
chas@cmf.nrl.navy.mil
>
parent
e2c4b721
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
net/atm/common.c
net/atm/common.c
+2
-2
net/atm/signaling.c
net/atm/signaling.c
+4
-4
net/atm/svc.c
net/atm/svc.c
+1
-0
No files found.
net/atm/common.c
View file @
9301e320
...
...
@@ -178,8 +178,6 @@ static void vcc_destroy_socket(struct sock *sk)
if
(
vcc
->
push
)
vcc
->
push
(
vcc
,
NULL
);
/* atmarpd has no push */
vcc_remove_socket
(
sk
);
/* no more receive */
while
((
skb
=
skb_dequeue
(
&
sk
->
sk_receive_queue
))
!=
NULL
)
{
atm_return
(
vcc
,
skb
->
truesize
);
kfree_skb
(
skb
);
...
...
@@ -188,6 +186,8 @@ static void vcc_destroy_socket(struct sock *sk)
module_put
(
vcc
->
dev
->
ops
->
owner
);
atm_dev_put
(
vcc
->
dev
);
}
vcc_remove_socket
(
sk
);
}
...
...
net/atm/signaling.c
View file @
9301e320
...
...
@@ -217,8 +217,9 @@ void sigd_enq(struct atm_vcc *vcc,enum atmsvc_msg_type type,
static
void
purge_vcc
(
struct
atm_vcc
*
vcc
)
{
if
(
sk_atm
(
vcc
)
->
sk_family
==
PF_ATMSVC
&&
!
test_bit
(
ATM_VF_META
,
&
vcc
->
flags
))
{
set_bit
(
ATM_VF_RELEASED
,
&
vcc
->
flags
);
!
test_bit
(
ATM_VF_META
,
&
vcc
->
flags
))
{
set_bit
(
ATM_VF_RELEASED
,
&
vcc
->
flags
);
clear_bit
(
ATM_VF_REGIS
,
&
vcc
->
flags
);
vcc_release_async
(
vcc
,
-
EUNATCH
);
}
}
...
...
@@ -243,7 +244,6 @@ static void sigd_close(struct atm_vcc *vcc)
sk_for_each
(
s
,
node
,
head
)
{
struct
atm_vcc
*
vcc
=
atm_sk
(
s
);
if
(
vcc
->
dev
)
purge_vcc
(
vcc
);
}
}
...
...
net/atm/svc.c
View file @
9301e320
...
...
@@ -302,6 +302,7 @@ static int svc_listen(struct socket *sock,int backlog)
error
=
-
EINVAL
;
goto
out
;
}
vcc_insert_socket
(
sk
);
set_bit
(
ATM_VF_WAITING
,
&
vcc
->
flags
);
prepare_to_wait
(
sk
->
sk_sleep
,
&
wait
,
TASK_UNINTERRUPTIBLE
);
sigd_enq
(
vcc
,
as_listen
,
NULL
,
NULL
,
&
vcc
->
local
);
...
...
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