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
adf9e8ae
Commit
adf9e8ae
authored
Jul 03, 2003
by
Matthew Wilcox
Committed by
Greg Kroah-Hartman
Jul 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Driver Core: fix firmware binary files
Fixes the sysfs binary file bug.
parent
93482f5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/base/firmware_class.c
drivers/base/firmware_class.c
+2
-2
No files found.
drivers/base/firmware_class.c
View file @
adf9e8ae
...
...
@@ -149,7 +149,7 @@ firmware_data_read(struct kobject *kobj,
if
(
offset
+
count
>
fw
->
size
)
count
=
fw
->
size
-
offset
;
memcpy
(
buffer
,
fw
->
data
+
offset
,
count
);
memcpy
(
buffer
+
offset
,
fw
->
data
+
offset
,
count
);
return
count
;
}
static
int
...
...
@@ -198,7 +198,7 @@ firmware_data_write(struct kobject *kobj,
if
(
retval
)
return
retval
;
memcpy
(
fw
->
data
+
offset
,
buffer
,
count
);
memcpy
(
fw
->
data
+
offset
,
buffer
+
offset
,
count
);
fw
->
size
=
max_t
(
size_t
,
offset
+
count
,
fw
->
size
);
...
...
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