maybe s/avoid/don't/ in the subject? > - get_device(&ub->cdev_dev); > ret = add_disk(disk); > if (ret) { > put_disk(disk); > goto out_unlock; Maybe just add a put_device here in the error branch to keep things simple?
maybe s/avoid/don't/ in the subject? > - get_device(&ub->cdev_dev); > ret = add_disk(disk); > if (ret) { > put_disk(disk); > goto out_unlock; Maybe just add a put_device here in the error branch to keep things simple?