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
c452d8e6
Commit
c452d8e6
authored
Oct 12, 2002
by
Alan Cox
Committed by
Linus Torvalds
Oct 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix up syncppp locking
parent
53affa1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/net/wan/syncppp.c
drivers/net/wan/syncppp.c
+4
-4
No files found.
drivers/net/wan/syncppp.c
View file @
c452d8e6
...
@@ -1284,12 +1284,12 @@ static void sppp_cp_timeout (unsigned long arg)
...
@@ -1284,12 +1284,12 @@ static void sppp_cp_timeout (unsigned long arg)
{
{
struct
sppp
*
sp
=
(
struct
sppp
*
)
arg
;
struct
sppp
*
sp
=
(
struct
sppp
*
)
arg
;
unsigned
long
flags
;
unsigned
long
flags
;
save_flags
(
flags
);
cli
(
);
spin_lock_irqsave
(
&
spppq_lock
,
flags
);
sp
->
pp_flags
&=
~
PP_TIMO
;
sp
->
pp_flags
&=
~
PP_TIMO
;
if
(
!
(
sp
->
pp_if
->
flags
&
IFF_UP
)
||
(
sp
->
pp_flags
&
PP_CISCO
))
{
if
(
!
(
sp
->
pp_if
->
flags
&
IFF_UP
)
||
(
sp
->
pp_flags
&
PP_CISCO
))
{
restore_flags
(
flags
);
spin_unlock_irqrestore
(
&
spppq_lock
,
flags
);
return
;
return
;
}
}
switch
(
sp
->
lcp
.
state
)
{
switch
(
sp
->
lcp
.
state
)
{
...
@@ -1328,7 +1328,7 @@ static void sppp_cp_timeout (unsigned long arg)
...
@@ -1328,7 +1328,7 @@ static void sppp_cp_timeout (unsigned long arg)
}
}
break
;
break
;
}
}
restore_flags
(
flags
);
spin_unlock_irqrestore
(
&
spppq_lock
,
flags
);
}
}
static
char
*
sppp_lcp_type_name
(
u8
type
)
static
char
*
sppp_lcp_type_name
(
u8
type
)
...
...
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