Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228919
b: refs/heads/master
c: eba4603
h: refs/heads/master
i:
  228917: f311b5f
  228915: 6ac8c4c
  228911: 85cdaa6
v: v3
  • Loading branch information
Arnd Hannemann authored and Chris Ball committed Jan 9, 2011
1 parent ddc6335 commit 5af3c93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93173054f2979de41b1912b19f0b57edfb35fcdc
refs/heads/master: eba46030e1727f2af377300b6a55df846fa830f1
8 changes: 6 additions & 2 deletions trunk/drivers/mmc/host/tmio_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,10 @@ static void tmio_mmc_start_dma_rx(struct tmio_mmc_host *host)
}

if ((!aligned && (host->sg_len > 1 || sg->length > PAGE_CACHE_SIZE ||
align >= MAX_ALIGN)) || !multiple)
align >= MAX_ALIGN)) || !multiple) {
ret = -EINVAL;
goto pio;
}

/* The only sg element can be unaligned, use our bounce buffer then */
if (!aligned) {
Expand Down Expand Up @@ -748,8 +750,10 @@ static void tmio_mmc_start_dma_tx(struct tmio_mmc_host *host)
}

if ((!aligned && (host->sg_len > 1 || sg->length > PAGE_CACHE_SIZE ||
align >= MAX_ALIGN)) || !multiple)
align >= MAX_ALIGN)) || !multiple) {
ret = -EINVAL;
goto pio;
}

/* The only sg element can be unaligned, use our bounce buffer then */
if (!aligned) {
Expand Down

0 comments on commit 5af3c93

Please sign in to comment.