From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=216.228.121.64; helo=hqemgate15.nvidia.com; envelope-from=ashishsingha@nvidia.com; receiver=edk2-devel@lists.01.org Received: from hqemgate15.nvidia.com (hqemgate15.nvidia.com [216.228.121.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 60F2B211AE8BF for ; Wed, 9 Jan 2019 12:58:49 -0800 (PST) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 09 Jan 2019 12:58:32 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 09 Jan 2019 12:58:49 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 09 Jan 2019 12:58:49 -0800 Received: from HQMAIL103.nvidia.com (172.20.187.11) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 9 Jan 2019 20:58:45 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Wed, 9 Jan 2019 20:58:45 +0000 Received: from ashishsingha-lnx.nvidia.com (Not Verified[10.28.48.147]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7, 5, 8, 10121) id ; Wed, 09 Jan 2019 12:58:45 -0800 From: Ashish Singhal To: CC: , , , , Ashish Singhal Date: Wed, 9 Jan 2019 13:58:33 -0700 Message-ID: X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1547067512; bh=V0aj7qprMoTnrT+beJsasPZqjblViXRJpuuAsZ+c+SQ=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=TSGKapVO7Plp7b5OERAYIEYGa5lqBDG21p+kMA2CUrzmpmQ7VONckIx0oeJCSc+bQ tCLllc6NZrM3Qi+gWppgxQYYc1R5TLE5M/BA7N0UTajxUxUhlaX7Tm1a+hSYYHZQgb JO5U7WYQGNqolTWtHpdfual+eCVha6NZK8dUKZRJXKa1taUH+3QdNlX8p2BFjk+eLW 3txXqASHHzsvQpFJigKSlMFWnHboITDoatwJQmltVXrAghOGlS3X4G3kJ5d3YiByX7 MOSKzFERv0o3mLfZl6rgjqarHIwY04vraHrxA3MbhrCfEujb9FrH9SSuJnQnsSu7Sc YraEvVZ8xKzFQ== Subject: [PATCH v4 0/2] Provide UEFILib functions for protocol uninstallation X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 20:58:50 -0000 Content-Type: text/plain An issue was seen in IScsiDxe in NetworkPkg where driver cleanup after initialization failure was not done right. Bug 1428 was filed in this regard. As per discussions with Mike, it was also discussed that having UEFILib provide protocol uninstallation abstraction would help to avoid these issues in the future. Bug 1429 was found to track this. These 2 patches take care of this. Ashish Singhal (2): MdePkg/UefiLib: Abstract driver model protocol uninstallation NetworkPkg/IScsiDxe: Use UEFILib APIs to uninstall protocols. MdePkg/Include/Library/UefiLib.h | 103 ++++ MdePkg/Library/UefiLib/UefiDriverModel.c | 972 ++++++++++++++++++++++++++++++- NetworkPkg/IScsiDxe/IScsiDriver.c | 31 +- 3 files changed, 1085 insertions(+), 21 deletions(-) -- 2.7.4