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
953f3bde
Commit
953f3bde
authored
May 26, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o wanrouter: fix bug introduced by latest namespace fix
Thanks to Adrian Bunk for reporting.
parent
6e9445e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
include/linux/wanrouter.h
include/linux/wanrouter.h
+2
-1
net/wanrouter/wanproc.c
net/wanrouter/wanproc.c
+3
-2
No files found.
include/linux/wanrouter.h
View file @
953f3bde
...
@@ -534,7 +534,8 @@ extern void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
...
@@ -534,7 +534,8 @@ extern void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
/* Public Data */
/* Public Data */
extern
struct
wan_device
*
router_devlist
;
/* list of registered devices */
/* list of registered devices */
extern
struct
wan_device
*
wanrouter_router_devlist
;
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
#endif
/* _ROUTER_H */
#endif
/* _ROUTER_H */
net/wanrouter/wanproc.c
View file @
953f3bde
...
@@ -87,7 +87,8 @@ static void *r_start(struct seq_file *m, loff_t *pos)
...
@@ -87,7 +87,8 @@ static void *r_start(struct seq_file *m, loff_t *pos)
lock_kernel
();
lock_kernel
();
if
(
!
l
--
)
if
(
!
l
--
)
return
(
void
*
)
1
;
return
(
void
*
)
1
;
for
(
wandev
=
router_devlist
;
l
--
&&
wandev
;
wandev
=
wandev
->
next
)
for
(
wandev
=
wanrouter_router_devlist
;
l
--
&&
wandev
;
wandev
=
wandev
->
next
)
;
;
return
wandev
;
return
wandev
;
}
}
...
@@ -96,7 +97,7 @@ static void *r_next(struct seq_file *m, void *v, loff_t *pos)
...
@@ -96,7 +97,7 @@ static void *r_next(struct seq_file *m, void *v, loff_t *pos)
{
{
struct
wan_device
*
wandev
=
v
;
struct
wan_device
*
wandev
=
v
;
(
*
pos
)
++
;
(
*
pos
)
++
;
return
(
v
==
(
void
*
)
1
)
?
router_devlist
:
wandev
->
next
;
return
(
v
==
(
void
*
)
1
)
?
wanrouter_
router_devlist
:
wandev
->
next
;
}
}
static
void
r_stop
(
struct
seq_file
*
m
,
void
*
v
)
static
void
r_stop
(
struct
seq_file
*
m
,
void
*
v
)
...
...
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