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
816f9c13
Commit
816f9c13
authored
Oct 28, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LLC]: Fix oops in procf handling.
parent
a14ae588
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
net/llc/llc_proc.c
net/llc/llc_proc.c
+3
-6
No files found.
net/llc/llc_proc.c
View file @
816f9c13
...
...
@@ -44,15 +44,12 @@ static struct sock *llc_get_sk_idx(loff_t pos)
read_lock_bh
(
&
sap
->
sk_list
.
lock
);
sk_for_each
(
sk
,
node
,
&
sap
->
sk_list
.
list
)
{
if
(
!
pos
)
break
;
goto
found
;
--
pos
;
}
read_unlock_bh
(
&
sap
->
sk_list
.
lock
);
if
(
!
pos
)
{
if
(
node
)
goto
found
;
if
(
!
pos
)
break
;
}
}
sk
=
NULL
;
found:
...
...
@@ -105,7 +102,7 @@ static void *llc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
static
void
llc_seq_stop
(
struct
seq_file
*
seq
,
void
*
v
)
{
if
(
v
)
{
if
(
v
&&
v
!=
SEQ_START_TOKEN
)
{
struct
sock
*
sk
=
v
;
struct
llc_opt
*
llc
=
llc_sk
(
sk
);
struct
llc_sap
*
sap
=
llc
->
sap
;
...
...
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