From ded996904993eb537a79c06706870961cce653be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 3 Aug 2026 22:25:08 +0200 Subject: [PATCH] [ATAPI] Correctly register GUID_DEVINTERFACE_STORAGEPORT interface IoRegisterDeviceInterface() is taking a PDO as argument. Otherwise, it is failing with STATUS_INVALID_DEVICE_REQUEST. --- drivers/storage/ide/atapi/fdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/storage/ide/atapi/fdo.c b/drivers/storage/ide/atapi/fdo.c index 9c38ccd1d00..0f56fdae1f3 100644 --- a/drivers/storage/ide/atapi/fdo.c +++ b/drivers/storage/ide/atapi/fdo.c @@ -346,7 +346,7 @@ AtaFdoStartDevice( AtaSetPortRegistryKey(ChanExt, DD_ATA_REG_MAX_TARGET_ID, PortData->MaxTargetId); - Status = IoRegisterDeviceInterface(ChanExt->Common.Self, + Status = IoRegisterDeviceInterface(ChanExt->Pdo, &GUID_DEVINTERFACE_STORAGEPORT, NULL, &ChanExt->StorageInterfaceName);