Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65598
b: refs/heads/master
c: 1d4de9e
h: refs/heads/master
v: v3
  • Loading branch information
Marc Pignat authored and Pierre Ossman committed Sep 23, 2007
1 parent fa5942d commit 3348497
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fdd8521dcc9d89072f3ca5dca444560bcea39c6
refs/heads/master: 1d4de9edd6c9ad676b20729ab15c04b78e9a50c5
8 changes: 8 additions & 0 deletions trunk/drivers/mmc/host/at91_mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,14 @@ static void at91_mci_send_command(struct at91mci_host *host, struct mmc_command
}

if (data) {

if ( data->blksz & 0x3 ) {
pr_debug("Unsupported block size\n");
cmd->error = -EINVAL;
mmc_request_done(host->mmc, host->request);
return;
}

block_length = data->blksz;
blocks = data->blocks;

Expand Down

0 comments on commit 3348497

Please sign in to comment.