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
998a4f2f
Commit
998a4f2f
authored
Jun 03, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regmap/fix/debugfs' into regmap-linus
parents
59e618a6
68e850d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drivers/base/regmap/regmap-debugfs.c
drivers/base/regmap/regmap-debugfs.c
+4
-1
No files found.
drivers/base/regmap/regmap-debugfs.c
View file @
998a4f2f
...
...
@@ -265,6 +265,7 @@ static ssize_t regmap_map_write_file(struct file *file,
char
*
start
=
buf
;
unsigned
long
reg
,
value
;
struct
regmap
*
map
=
file
->
private_data
;
int
ret
;
buf_size
=
min
(
count
,
(
sizeof
(
buf
)
-
1
));
if
(
copy_from_user
(
buf
,
user_buf
,
buf_size
))
...
...
@@ -282,7 +283,9 @@ static ssize_t regmap_map_write_file(struct file *file,
/* Userspace has been fiddling around behind the kernel's back */
add_taint
(
TAINT_USER
,
LOCKDEP_NOW_UNRELIABLE
);
regmap_write
(
map
,
reg
,
value
);
ret
=
regmap_write
(
map
,
reg
,
value
);
if
(
ret
<
0
)
return
ret
;
return
buf_size
;
}
#else
...
...
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