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
8032747e
Commit
8032747e
authored
Oct 05, 2009
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtd: make onenand_base.c compile again
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
297758f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/mtd/onenand/onenand_base.c
drivers/mtd/onenand/onenand_base.c
+3
-3
No files found.
drivers/mtd/onenand/onenand_base.c
View file @
8032747e
...
@@ -1051,7 +1051,7 @@ static int onenand_mlc_read_ops_nolock(struct mtd_info *mtd, loff_t from,
...
@@ -1051,7 +1051,7 @@ static int onenand_mlc_read_ops_nolock(struct mtd_info *mtd, loff_t from,
int
writesize
=
this
->
writesize
;
int
writesize
=
this
->
writesize
;
DEBUG
(
MTD_DEBUG_LEVEL3
,
"%s: from = 0x%08x, len = %i
\n
"
,
DEBUG
(
MTD_DEBUG_LEVEL3
,
"%s: from = 0x%08x, len = %i
\n
"
,
(
unsigned
int
)
from
,
(
int
)
len
);
__func__
,
(
unsigned
int
)
from
,
(
int
)
len
);
if
(
ops
->
mode
==
MTD_OOB_AUTO
)
if
(
ops
->
mode
==
MTD_OOB_AUTO
)
oobsize
=
this
->
ecclayout
->
oobavail
;
oobsize
=
this
->
ecclayout
->
oobavail
;
...
@@ -2022,8 +2022,8 @@ static int onenand_write_oob_nolock(struct mtd_info *mtd, loff_t to,
...
@@ -2022,8 +2022,8 @@ static int onenand_write_oob_nolock(struct mtd_info *mtd, loff_t to,
if
(
unlikely
(
to
>=
mtd
->
size
||
if
(
unlikely
(
to
>=
mtd
->
size
||
column
+
len
>
((
mtd
->
size
>>
this
->
page_shift
)
-
column
+
len
>
((
mtd
->
size
>>
this
->
page_shift
)
-
(
to
>>
this
->
page_shift
))
*
oobsize
))
{
(
to
>>
this
->
page_shift
))
*
oobsize
))
{
printk
(
KERN_ERR
"%s: Attempted to write past end of device
\n
"
printk
(
KERN_ERR
"%s: Attempted to write past end of device
\n
"
,
__func__
);
__func__
);
return
-
EINVAL
;
return
-
EINVAL
;
}
}
...
...
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