]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/scsi/cxlflash/main.c
scsi: cxlflash: Avoid double free of character device
[mirror_ubuntu-zesty-kernel.git] / drivers / scsi / cxlflash / main.c
index 7a787b6e21c4aaf4897db6fd205f9dce6faa119c..455564fb6c4db0d534df819b64617aaf35a52188 100644 (file)
@@ -923,7 +923,6 @@ static void cxlflash_put_minor(int minor)
  */
 static void cxlflash_release_chrdev(struct cxlflash_cfg *cfg)
 {
-       put_device(cfg->chardev);
        device_unregister(cfg->chardev);
        cfg->chardev = NULL;
        cdev_del(&cfg->cdev);