Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
3e0420f0
Commit
3e0420f0
authored
May 20, 2008
by
Arnd Bergmann
Committed by
Jonathan Corbet
Jul 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmwatchdog: BKL pushdown
Signed-off-by:
Arnd Bergmann
<
arnd@arndb.de
>
parent
6c111d88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/s390/char/vmwatchdog.c
drivers/s390/char/vmwatchdog.c
+6
-1
No files found.
drivers/s390/char/vmwatchdog.c
View file @
3e0420f0
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/moduleparam.h>
#include <linux/watchdog.h>
#include <linux/watchdog.h>
#include <linux/smp_lock.h>
#include <asm/ebcdic.h>
#include <asm/ebcdic.h>
#include <asm/io.h>
#include <asm/io.h>
...
@@ -131,11 +132,15 @@ static int __init vmwdt_probe(void)
...
@@ -131,11 +132,15 @@ static int __init vmwdt_probe(void)
static
int
vmwdt_open
(
struct
inode
*
i
,
struct
file
*
f
)
static
int
vmwdt_open
(
struct
inode
*
i
,
struct
file
*
f
)
{
{
int
ret
;
int
ret
;
if
(
test_and_set_bit
(
0
,
&
vmwdt_is_open
))
lock_kernel
();
if
(
test_and_set_bit
(
0
,
&
vmwdt_is_open
))
{
unlock_kernel
();
return
-
EBUSY
;
return
-
EBUSY
;
}
ret
=
vmwdt_keepalive
();
ret
=
vmwdt_keepalive
();
if
(
ret
)
if
(
ret
)
clear_bit
(
0
,
&
vmwdt_is_open
);
clear_bit
(
0
,
&
vmwdt_is_open
);
unlock_kernel
();
return
ret
?
ret
:
nonseekable_open
(
i
,
f
);
return
ret
?
ret
:
nonseekable_open
(
i
,
f
);
}
}
...
...
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