]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/s390/cio/device.c
s390/cio: fix use after free in cmb processing
[karo-tx-linux.git] / drivers / s390 / cio / device.c
index 20b92c7039447c6d9eb233d29adaff1eeefa8c9c..6aae6841280214f2db3a3aac0461f14f9050cf04 100644 (file)
@@ -1787,6 +1787,8 @@ static int ccw_device_remove(struct device *dev)
        cdev->drv = NULL;
        cdev->private->int_class = IRQIO_CIO;
        spin_unlock_irq(cdev->ccwlock);
+       __disable_cmf(cdev);
+
        return 0;
 }