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
a84756c5
Commit
a84756c5
authored
Jul 29, 2008
by
Pierre Ossman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmc: properly iterate over sg list in debug check
Signed-off-by:
Pierre Ossman
<
drzeus@drzeus.cx
>
parent
b7ac2cf1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/mmc/core/core.c
drivers/mmc/core/core.c
+3
-2
No files found.
drivers/mmc/core/core.c
View file @
a84756c5
...
@@ -121,6 +121,7 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
...
@@ -121,6 +121,7 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
{
{
#ifdef CONFIG_MMC_DEBUG
#ifdef CONFIG_MMC_DEBUG
unsigned
int
i
,
sz
;
unsigned
int
i
,
sz
;
struct
scatterlist
*
sg
;
#endif
#endif
pr_debug
(
"%s: starting CMD%u arg %08x flags %08x
\n
"
,
pr_debug
(
"%s: starting CMD%u arg %08x flags %08x
\n
"
,
...
@@ -156,8 +157,8 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
...
@@ -156,8 +157,8 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq)
#ifdef CONFIG_MMC_DEBUG
#ifdef CONFIG_MMC_DEBUG
sz
=
0
;
sz
=
0
;
for
(
i
=
0
;
i
<
mrq
->
data
->
sg_len
;
i
++
)
for
_each_sg
(
mrq
->
data
->
sg
,
sg
,
mrq
->
data
->
sg_len
,
i
)
sz
+=
mrq
->
data
->
sg
[
i
].
length
;
sz
+=
sg
->
length
;
BUG_ON
(
sz
!=
mrq
->
data
->
blocks
*
mrq
->
data
->
blksz
);
BUG_ON
(
sz
!=
mrq
->
data
->
blocks
*
mrq
->
data
->
blksz
);
#endif
#endif
...
...
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