mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
Make certain the the 48bit flag is reset if we dont translate LBA.
This commit is contained in:
parent
24ac2f1c5e
commit
d78c6e89ae
1 changed files with 2 additions and 2 deletions
|
|
@ -705,6 +705,8 @@ ata_modify_if_48bit(struct ata_request *request)
|
|||
struct ata_device *atadev = device_get_softc(request->dev);
|
||||
u_int8_t command = request->u.ata.command;
|
||||
|
||||
atadev->flags &= ~ATA_D_48BIT_ACTIVE;
|
||||
|
||||
if ((request->u.ata.lba >= ATA_MAX_28BIT_LBA ||
|
||||
request->u.ata.count > 256) &&
|
||||
atadev->param.support.command2 & ATA_SUPPORT_ADDRESS48) {
|
||||
|
|
@ -734,8 +736,6 @@ ata_modify_if_48bit(struct ata_request *request)
|
|||
}
|
||||
atadev->flags |= ATA_D_48BIT_ACTIVE;
|
||||
}
|
||||
else
|
||||
atadev->flags &= ~ATA_D_48BIT_ACTIVE;
|
||||
return command;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue