Loading drivers/scsi/ufs/ufshcd.c +5 −4 Original line number Diff line number Diff line Loading @@ -9330,13 +9330,14 @@ static int ufshcd_ioctl(struct scsi_device *dev, int cmd, void __user *buffer) int err = 0; BUG_ON(!hba); if (!buffer) { dev_err(hba->dev, "%s: User buffer is NULL!\n", __func__); return -EINVAL; } switch (cmd) { case UFS_IOCTL_QUERY: if (!buffer) { dev_err(hba->dev, "%s: User buffer is NULL!\n", __func__); return -EINVAL; } pm_runtime_get_sync(hba->dev); err = ufshcd_query_ioctl(hba, ufshcd_scsi_to_upiu_lun(dev->lun), buffer); Loading Loading
drivers/scsi/ufs/ufshcd.c +5 −4 Original line number Diff line number Diff line Loading @@ -9330,13 +9330,14 @@ static int ufshcd_ioctl(struct scsi_device *dev, int cmd, void __user *buffer) int err = 0; BUG_ON(!hba); if (!buffer) { dev_err(hba->dev, "%s: User buffer is NULL!\n", __func__); return -EINVAL; } switch (cmd) { case UFS_IOCTL_QUERY: if (!buffer) { dev_err(hba->dev, "%s: User buffer is NULL!\n", __func__); return -EINVAL; } pm_runtime_get_sync(hba->dev); err = ufshcd_query_ioctl(hba, ufshcd_scsi_to_upiu_lun(dev->lun), buffer); Loading