aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2007-04-27 10:01:38 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-04-27 10:01:41 -0400
commit8c4941c53b14e5a08ed2f270e9f087b410a9abcc (patch)
tree38ef2e9ed0e16828ef5d522f0528a8723b7110e0 /drivers/s390
parentd76123eb357a4baa653714183df286c1bb99f707 (diff)
[S390] cio: cm_enable memory leak.
We allocage two pages when channel path measurements are enabled via cm_enable. We must not forget to free them again when channel path measurements are disabled again. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/chsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c
index 0841e16b6a82..ea92ac4d6577 100644
--- a/drivers/s390/cio/chsc.c
+++ b/drivers/s390/cio/chsc.c
@@ -818,7 +818,7 @@ chsc_secm(struct channel_subsystem *css, int enable)
818 } else 818 } else
819 chsc_remove_cmg_attr(css); 819 chsc_remove_cmg_attr(css);
820 } 820 }
821 if (enable && !css->cm_enabled) { 821 if (!css->cm_enabled) {
822 free_page((unsigned long)css->cub_addr1); 822 free_page((unsigned long)css->cub_addr1);
823 free_page((unsigned long)css->cub_addr2); 823 free_page((unsigned long)css->cub_addr2);
824 } 824 }