diff options
author | Zheyu Ma <zheyuma97@gmail.com> | 2022-04-21 09:39:20 +0800 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-04-22 08:45:06 +0900 |
commit | aafa9f958342db36c17ac2a7f1b841032c96feb4 (patch) | |
tree | bdab752e1aa0aa99234944f0ca8fb2e7da9f34d6 /fs/fsopen.c | |
parent | 55b014159ee7af63770cd7f2b6fe926f6dd99335 (diff) |
ata: pata_marvell: Check the 'bmdma_addr' beforing reading
Before detecting the cable type on the dma bar, the driver should check
whether the 'bmdma_addr' is zero, which means the adapter does not
support DMA, otherwise we will get the following error:
[ 5.146634] Bad IO access at port 0x1 (return inb(port))
[ 5.147206] WARNING: CPU: 2 PID: 303 at lib/iomap.c:44 ioread8+0x4a/0x60
[ 5.150856] RIP: 0010:ioread8+0x4a/0x60
[ 5.160238] Call Trace:
[ 5.160470] <TASK>
[ 5.160674] marvell_cable_detect+0x6e/0xc0 [pata_marvell]
[ 5.161728] ata_eh_recover+0x3520/0x6cc0
[ 5.168075] ata_do_eh+0x49/0x3c0
Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'fs/fsopen.c')
0 files changed, 0 insertions, 0 deletions