mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Only call dma.unload() if initialized.
Reported by: Stanislav Sedov
This commit is contained in:
parent
11df23b530
commit
2e9f7f6840
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184328
@ -503,7 +503,8 @@ ata_timeout(struct ata_request *request)
|
||||
request->flags |= ATA_R_TIMEOUT;
|
||||
mtx_unlock(&ch->state_mtx);
|
||||
ATA_LOCKING(ch->dev, ATA_LF_UNLOCK);
|
||||
ch->dma.unload(request);
|
||||
if (ch->dma.unload)
|
||||
ch->dma.unload(request);
|
||||
ata_finish(request);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user