diff options
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/at91_mci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c index 8ec317802347..6ba98a49612d 100644 --- a/drivers/mmc/host/at91_mci.c +++ b/drivers/mmc/host/at91_mci.c | |||
@@ -428,6 +428,14 @@ static void at91_mci_send_command(struct at91mci_host *host, struct mmc_command | |||
428 | } | 428 | } |
429 | 429 | ||
430 | if (data) { | 430 | if (data) { |
431 | |||
432 | if ( data->blksz & 0x3 ) { | ||
433 | pr_debug("Unsupported block size\n"); | ||
434 | cmd->error = -EINVAL; | ||
435 | mmc_request_done(host->mmc, host->request); | ||
436 | return; | ||
437 | } | ||
438 | |||
431 | block_length = data->blksz; | 439 | block_length = data->blksz; |
432 | blocks = data->blocks; | 440 | blocks = data->blocks; |
433 | 441 | ||