Loading drivers/nvme/host/core.c +3 −1 Original line number Diff line number Diff line Loading @@ -3265,8 +3265,10 @@ static int nvme_dev_open(struct inode *inode, struct file *file) } nvme_get_ctrl(ctrl); if (!try_module_get(ctrl->ops->module)) if (!try_module_get(ctrl->ops->module)) { nvme_put_ctrl(ctrl); return -EINVAL; } file->private_data = ctrl; return 0; Loading Loading
drivers/nvme/host/core.c +3 −1 Original line number Diff line number Diff line Loading @@ -3265,8 +3265,10 @@ static int nvme_dev_open(struct inode *inode, struct file *file) } nvme_get_ctrl(ctrl); if (!try_module_get(ctrl->ops->module)) if (!try_module_get(ctrl->ops->module)) { nvme_put_ctrl(ctrl); return -EINVAL; } file->private_data = ctrl; return 0; Loading