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
5b7854dd
Commit
5b7854dd
authored
Oct 16, 2003
by
Chas Williams
Committed by
Stephen Hemminger
Oct 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: Remove vcc reference on outstanding SKBs
parent
54d26813
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
drivers/atm/nicstar.c
drivers/atm/nicstar.c
+20
-1
No files found.
drivers/atm/nicstar.c
View file @
5b7854dd
...
@@ -1676,6 +1676,25 @@ static void ns_close(struct atm_vcc *vcc)
...
@@ -1676,6 +1676,25 @@ static void ns_close(struct atm_vcc *vcc)
free_scq
(
vc
->
scq
,
vcc
);
free_scq
(
vc
->
scq
,
vcc
);
}
}
/* remove all references to vcc before deleting it */
if
(
vcc
->
qos
.
txtp
.
traffic_class
!=
ATM_NONE
)
{
unsigned
long
flags
;
scq_info
*
scq
=
card
->
scq0
;
ns_grab_scq_lock
(
card
,
scq
,
flags
);
for
(
i
=
0
;
i
<
scq
->
num_entries
;
i
++
)
{
if
(
scq
->
skb
[
i
]
&&
ATM_SKB
(
scq
->
skb
[
i
])
->
vcc
==
vcc
)
{
ATM_SKB
(
scq
->
skb
[
i
])
->
vcc
=
NULL
;
atm_return
(
vcc
,
scq
->
skb
[
i
]
->
truesize
);
PRINTK
(
"nicstar: deleted pending vcc mapping
\n
"
);
}
}
spin_unlock_irqrestore
(
&
scq
->
lock
,
flags
);
}
vcc
->
dev_data
=
NULL
;
vcc
->
dev_data
=
NULL
;
clear_bit
(
ATM_VF_PARTIAL
,
&
vcc
->
flags
);
clear_bit
(
ATM_VF_PARTIAL
,
&
vcc
->
flags
);
clear_bit
(
ATM_VF_ADDR
,
&
vcc
->
flags
);
clear_bit
(
ATM_VF_ADDR
,
&
vcc
->
flags
);
...
@@ -2074,7 +2093,7 @@ static void drain_scq(ns_dev *card, scq_info *scq, int pos)
...
@@ -2074,7 +2093,7 @@ static void drain_scq(ns_dev *card, scq_info *scq, int pos)
if
(
skb
!=
NULL
)
if
(
skb
!=
NULL
)
{
{
vcc
=
ATM_SKB
(
skb
)
->
vcc
;
vcc
=
ATM_SKB
(
skb
)
->
vcc
;
if
(
vcc
->
pop
!=
NULL
)
{
if
(
vcc
&&
vcc
->
pop
!=
NULL
)
{
vcc
->
pop
(
vcc
,
skb
);
vcc
->
pop
(
vcc
,
skb
);
}
else
{
}
else
{
dev_kfree_skb_irq
(
skb
);
dev_kfree_skb_irq
(
skb
);
...
...
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