diff mbox

[3/3] uefirttime: unload the efi_runtime module when deinit the test

Message ID 1355478608-25502-1-git-send-email-ivan.hu@canonical.com
State Accepted
Headers show

Commit Message

ivanhu Dec. 14, 2012, 9:50 a.m. UTC
Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 src/uefi/uefirttime/uefirttime.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Colin Ian King Dec. 14, 2012, 10:31 a.m. UTC | #1
On 14/12/12 09:50, Ivan Hu wrote:
> Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
> ---
>   src/uefi/uefirttime/uefirttime.c |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/uefi/uefirttime/uefirttime.c b/src/uefi/uefirttime/uefirttime.c
> index 78b5a3b..f038ebd 100644
> --- a/src/uefi/uefirttime/uefirttime.c
> +++ b/src/uefi/uefirttime/uefirttime.c
> @@ -189,6 +189,7 @@ static int uefirttime_deinit(fwts_framework *fw)
>   	FWTS_UNUSED(fw);
>
>   	close(fd);
> +	fwts_lib_efi_runtime_unload_module(fw);
>
>   	return FWTS_OK;
>   }
>

Good catch, I missed that on earlier patches.

Acked-by: Colin Ian King <colin.king@canonical.com>
Alex Hung Dec. 21, 2012, 2:02 a.m. UTC | #2
On 12/14/2012 05:50 PM, Ivan Hu wrote:
> Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
> ---
>   src/uefi/uefirttime/uefirttime.c |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/uefi/uefirttime/uefirttime.c b/src/uefi/uefirttime/uefirttime.c
> index 78b5a3b..f038ebd 100644
> --- a/src/uefi/uefirttime/uefirttime.c
> +++ b/src/uefi/uefirttime/uefirttime.c
> @@ -189,6 +189,7 @@ static int uefirttime_deinit(fwts_framework *fw)
>   	FWTS_UNUSED(fw);
>
>   	close(fd);
> +	fwts_lib_efi_runtime_unload_module(fw);
>
>   	return FWTS_OK;
>   }
>
Acked-by: Alex Hung <alex.hung@canonical.com>
diff mbox

Patch

diff --git a/src/uefi/uefirttime/uefirttime.c b/src/uefi/uefirttime/uefirttime.c
index 78b5a3b..f038ebd 100644
--- a/src/uefi/uefirttime/uefirttime.c
+++ b/src/uefi/uefirttime/uefirttime.c
@@ -189,6 +189,7 @@  static int uefirttime_deinit(fwts_framework *fw)
 	FWTS_UNUSED(fw);
 
 	close(fd);
+	fwts_lib_efi_runtime_unload_module(fw);
 
 	return FWTS_OK;
 }