Skip to content

Commit

Permalink
[S390] cio: dont kfree vmalloced memory
Browse files Browse the repository at this point in the history
Don't use kfree to free memory allocated by vmalloc.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Sep 22, 2009
1 parent 8ea7f55 commit b827d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/s390/cio/css.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ static int __init css_bus_init(void)
out:
crw_unregister_handler(CRW_RSC_CSS);
chsc_free_sei_area();
kfree(slow_subchannel_set);
idset_free(slow_subchannel_set);
pr_alert("The CSS device driver initialization failed with "
"errno=%d\n", ret);
return ret;
Expand All @@ -993,7 +993,7 @@ static void __init css_bus_cleanup(void)
bus_unregister(&css_bus_type);
crw_unregister_handler(CRW_RSC_CSS);
chsc_free_sei_area();
kfree(slow_subchannel_set);
idset_free(slow_subchannel_set);
isc_unregister(IO_SCH_ISC);
}

Expand Down

0 comments on commit b827d1c

Please sign in to comment.