[kvm-unit-tests,2/2] s390x: Free allocated page in iep test
diff mbox series

Message ID 20190925135623.9740-3-frankja@linux.ibm.com
State New
Headers show
Series
  • s390x: Quick fixes
Related show

Commit Message

Janosch Frank Sept. 25, 2019, 1:56 p.m. UTC
Let's also clean up

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
 s390x/iep.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Huth Sept. 25, 2019, 3:51 p.m. UTC | #1
On 25/09/2019 15.56, Janosch Frank wrote:
> Let's also clean up
> 
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> ---
>  s390x/iep.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/s390x/iep.c b/s390x/iep.c
> index 7da78a3..55c01ee 100644
> --- a/s390x/iep.c
> +++ b/s390x/iep.c
> @@ -43,6 +43,7 @@ static void test_iep(void)
>  	report_prefix_pop();
>  	unprotect_page(iepbuf, PAGE_ENTRY_IEP);
>  	ctl_clear_bit(0, 20);
> +	free_page(iepbuf);
>  }
>  
>  int main(void)
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>

Patch
diff mbox series

diff --git a/s390x/iep.c b/s390x/iep.c
index 7da78a3..55c01ee 100644
--- a/s390x/iep.c
+++ b/s390x/iep.c
@@ -43,6 +43,7 @@  static void test_iep(void)
 	report_prefix_pop();
 	unprotect_page(iepbuf, PAGE_ENTRY_IEP);
 	ctl_clear_bit(0, 20);
+	free_page(iepbuf);
 }
 
 int main(void)