Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpenBMC Firmware
talos-obmc-linux
Commits
998a4f2f
Commit
998a4f2f
authored
11 years ago
by
Mark Brown
Browse files
Options
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
...
...
This diff is collapsed.
Click to expand it.
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