diff options
author | Mark Brown <broonie@kernel.org> | 2015-04-08 16:04:25 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-08 16:04:25 -0400 |
commit | 89cda06d7f9c3c111a81fcdf5464926f5f984ebc (patch) | |
tree | bfa46c20c325feccd9de1a293e11686981d63e7b /drivers/spi/spi-img-spfi.c | |
parent | ede8342bf63166e8d8fc3c05fc0985b27cc8186b (diff) | |
parent | f22e6e847115abc3a0e2ad7bb18d243d42275af1 (diff) |
Merge tag 'v4.0-rc7' into spi-img-spfi
Linux 4.0-rc7
Diffstat (limited to 'drivers/spi/spi-img-spfi.c')
-rw-r--r-- | drivers/spi/spi-img-spfi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/spi-img-spfi.c b/drivers/spi/spi-img-spfi.c index 6c6ae4a9401a..c9f3bca988d7 100644 --- a/drivers/spi/spi-img-spfi.c +++ b/drivers/spi/spi-img-spfi.c | |||
@@ -466,6 +466,13 @@ static int img_spfi_transfer_one(struct spi_master *master, | |||
466 | unsigned long flags; | 466 | unsigned long flags; |
467 | int ret; | 467 | int ret; |
468 | 468 | ||
469 | if (xfer->len > SPFI_TRANSACTION_TSIZE_MASK) { | ||
470 | dev_err(spfi->dev, | ||
471 | "Transfer length (%d) is greater than the max supported (%d)", | ||
472 | xfer->len, SPFI_TRANSACTION_TSIZE_MASK); | ||
473 | return -EINVAL; | ||
474 | } | ||
475 | |||
469 | /* | 476 | /* |
470 | * Stop all DMA and reset the controller if the previous transaction | 477 | * Stop all DMA and reset the controller if the previous transaction |
471 | * timed-out and never completed it's DMA. | 478 | * timed-out and never completed it's DMA. |