Commit 8c4941c5 authored by Cornelia Huck's avatar Cornelia Huck Committed by Martin Schwidefsky

[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: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent d76123eb
...@@ -818,7 +818,7 @@ chsc_secm(struct channel_subsystem *css, int enable) ...@@ -818,7 +818,7 @@ chsc_secm(struct channel_subsystem *css, int enable)
} else } else
chsc_remove_cmg_attr(css); chsc_remove_cmg_attr(css);
} }
if (enable && !css->cm_enabled) { if (!css->cm_enabled) {
free_page((unsigned long)css->cub_addr1); free_page((unsigned long)css->cub_addr1);
free_page((unsigned long)css->cub_addr2); free_page((unsigned long)css->cub_addr2);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment