Skip to contentSkip to conversation

vfio-ccw: bugfix

GIT PULL Applied Cornelia Huck 2 participants 3 messages Jun 12, 2019 – Jun 13, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

The following changes since commit 753469a23b42d0c4a2b28de35826af74a4d554ab:

Merge tag 'vfio-ccw-20190603' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw into features (2019-06-04 15:04:53 +0200)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw.git tags/vfio-ccw-20190612

for you to fetch changes up to 5398331c8c218cc9298fe95380b8b87a3a62defa:

vfio-ccw: Destroy kmem cache region on module exit (2019-06-04 17:32:01 +0200)

----------------------------------------------------------------
Fix a memory leak on exit.

----------------------------------------------------------------

Farhan Ali (1):
vfio-ccw: Destroy kmem cache region on module exit

 drivers/s390/cio/vfio_ccw_drv.c | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.20.1
#1 lore raw

[PULL 1/1] vfio-ccw: Destroy kmem cache region on module exit

From: Farhan Ali <[email protected]>

Free the vfio_ccw_cmd_region on module exit.

Fixes d5afd5d135c8 ("vfio-ccw: add handling for async channel instructions")

Message-Id: <c0f39039d28af39ea2939391bf005e3495d890fd.1559576250.git.alifm@linux.ibm.com>

---
 drivers/s390/cio/vfio_ccw_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/s390/cio/vfio_ccw_drv.c +1 -0
index 66a66ac1f3d1..9cee9f20d310 100644
@@ -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);
Signature · 1 line
2.20.1
#2 lore raw

Re: [PULL 1/1] vfio-ccw: Destroy kmem cache region on module exit

Quoted 17 lines · Cornelia Huck

From: Farhan Ali <[email protected]>

Free the vfio_ccw_cmd_region on module exit.

Fixes d5afd5d135c8 ("vfio-ccw: add handling for async channel instructions")

Message-Id: <c0f39039d28af39ea2939391bf005e3495d890fd.1559576250.git.alifm@linux.ibm.com>

---
 drivers/s390/cio/vfio_ccw_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/s390/cio/vfio_ccw_drv.c +0 -0
index 66a66ac1f3d1..9cee9f20d310 100644

drivers/s390/cio/vfio_ccw_drv.c static void __exit vfio_ccw_sch_exit(void) · line 303

Quoted 5 lines
drivers/s390/cio/vfio_ccw_drv.c +1 -0
@@ -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);

Applied to 'fixes' branch. Thanks!