diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2018-10-16 07:31:25 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-10-18 03:34:20 +0200 |
commit | b7ded0e8b0d11b6df1c4e5aa23a26e6629c21985 (patch) | |
tree | 4592712924dc0dec6a2d74d5626fe4da45e870d7 /drivers/scsi/esp_scsi.c | |
parent | scsi: dc395x: use generic DMA API (diff) | |
download | linux-b7ded0e8b0d11b6df1c4e5aa23a26e6629c21985.tar.xz linux-b7ded0e8b0d11b6df1c4e5aa23a26e6629c21985.zip |
scsi: zorro_esp: Limit DMA transfers to 65535 bytes
The core driver, esp_scsi, does not use the ESP_CONFIG2_FENAB bit, so the
chip's Transfer Counter register is only 16 bits wide (not 24). A larger
transfer cannot work and will theoretically result in a failed command
and a "DMA length is zero" error.
Fixes: 3109e5ae0311 ("scsi: zorro_esp: New driver for Amiga Zorro NCR53C9x boards")
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Cc: Michael Schmitz <schmitzmic@gmail.com>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Reviewed-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/esp_scsi.c')
0 files changed, 0 insertions, 0 deletions