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
0a691a2c
Commit
0a691a2c
authored
Aug 20, 2004
by
Wim Van Sebroeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] v2.6.8.1 cpu5wdt.c-nonseekable_open-patch
cpu5wdt also contains a VFS and thus should be "nonseekable_open"
parent
79d6f094
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
drivers/char/watchdog/cpu5wdt.c
drivers/char/watchdog/cpu5wdt.c
+2
-1
No files found.
drivers/char/watchdog/cpu5wdt.c
View file @
0a691a2c
...
...
@@ -134,7 +134,7 @@ static int cpu5wdt_open(struct inode *inode, struct file *file)
if
(
test_and_set_bit
(
0
,
&
cpu5wdt_device
.
inuse
)
)
return
-
EBUSY
;
return
0
;
return
nonseekable_open
(
inode
,
file
)
;
}
static
int
cpu5wdt_release
(
struct
inode
*
inode
,
struct
file
*
file
)
...
...
@@ -198,6 +198,7 @@ static ssize_t cpu5wdt_write(struct file *file, const char __user *buf, size_t c
static
struct
file_operations
cpu5wdt_fops
=
{
.
owner
=
THIS_MODULE
,
.
llseek
=
no_llseek
,
.
ioctl
=
cpu5wdt_ioctl
,
.
open
=
cpu5wdt_open
,
.
write
=
cpu5wdt_write
,
...
...
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