diff options
author | Farhan Ali <alifm@linux.ibm.com> | 2019-06-03 11:42:47 -0400 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2019-06-13 15:52:28 +0200 |
commit | 11aff183225c5cf48fae074cd99d8f18ba84ed34 (patch) | |
tree | 1e27d64102cbcd799e1b74d057d4c4fb221c1544 | |
parent | 93c2f55ffc89247079e4eb616c70ecc3c9614b05 (diff) | |
download | linux-stable-11aff183225c5cf48fae074cd99d8f18ba84ed34.tar.gz linux-stable-11aff183225c5cf48fae074cd99d8f18ba84ed34.tar.bz2 linux-stable-11aff183225c5cf48fae074cd99d8f18ba84ed34.zip |
vfio-ccw: Destroy kmem cache region on module exit
Free the vfio_ccw_cmd_region on module exit.
Fixes: d5afd5d135c8 ("vfio-ccw: add handling for async channel instructions")
Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
Message-Id: <c0f39039d28af39ea2939391bf005e3495d890fd.1559576250.git.alifm@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
-rw-r--r-- | drivers/s390/cio/vfio_ccw_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/cio/vfio_ccw_drv.c b/drivers/s390/cio/vfio_ccw_drv.c index ee8767f5845a..9125f7f4e64c 100644 --- a/drivers/s390/cio/vfio_ccw_drv.c +++ b/drivers/s390/cio/vfio_ccw_drv.c @@ -299,6 +299,7 @@ static void __exit vfio_ccw_sch_exit(void) css_driver_unregister(&vfio_ccw_sch_driver); isc_unregister(VFIO_CCW_ISC); kmem_cache_destroy(vfio_ccw_io_region); + kmem_cache_destroy(vfio_ccw_cmd_region); destroy_workqueue(vfio_ccw_work_q); } module_init(vfio_ccw_sch_init); |