Commit b827d1c8 authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky

[S390] cio: dont kfree vmalloced memory

Don't use kfree to free memory allocated by vmalloc.
Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 8ea7f559
...@@ -971,7 +971,7 @@ static int __init css_bus_init(void) ...@@ -971,7 +971,7 @@ static int __init css_bus_init(void)
out: out:
crw_unregister_handler(CRW_RSC_CSS); crw_unregister_handler(CRW_RSC_CSS);
chsc_free_sei_area(); chsc_free_sei_area();
kfree(slow_subchannel_set); idset_free(slow_subchannel_set);
pr_alert("The CSS device driver initialization failed with " pr_alert("The CSS device driver initialization failed with "
"errno=%d\n", ret); "errno=%d\n", ret);
return ret; return ret;
...@@ -993,7 +993,7 @@ static void __init css_bus_cleanup(void) ...@@ -993,7 +993,7 @@ static void __init css_bus_cleanup(void)
bus_unregister(&css_bus_type); bus_unregister(&css_bus_type);
crw_unregister_handler(CRW_RSC_CSS); crw_unregister_handler(CRW_RSC_CSS);
chsc_free_sei_area(); chsc_free_sei_area();
kfree(slow_subchannel_set); idset_free(slow_subchannel_set);
isc_unregister(IO_SCH_ISC); isc_unregister(IO_SCH_ISC);
} }
......
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