mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Report to CAM unit number of underlying ataX bus device, instead of this
atapicamX. It is more apropriate and useful together with "ata" name.
This commit is contained in:
parent
c8b8a2c4e6
commit
fff784a8da
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ atapi_cam_attach(device_t dev)
|
|||
scp->parent = device_get_parent(dev);
|
||||
scp->ata_ch = device_get_softc(scp->parent);
|
||||
TAILQ_INIT(&scp->pending_hcbs);
|
||||
unit = device_get_unit(dev);
|
||||
unit = device_get_unit(device_get_parent(dev));
|
||||
|
||||
if ((devq = cam_simq_alloc(16)) == NULL) {
|
||||
error = ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue