RE: [PATCH] scsi: ufs: Check for return value of create_singlethread_workqueue
From: Avri Altman
Date: Tue Mar 26 2019 - 10:46:58 EST
HI,
>
> In case create_singlethread_workqueue fails in ufshcd_init_scaling, the
> patch returns the error upstream.
>
> Signed-off-by: Aditya Pakki <pakki001@xxxxxxx>
> ---
> out_remove_scsi_host:
> scsi_remove_host(hba->host);
> -exit_gating:
> +exit_scaling:
> ufshcd_exit_clk_scaling(hba);
> +exit_gating:
> ufshcd_exit_clk_gating(hba);
There are calls to exit_gating which expects clk_scaling cleanup as well.
Thanks,
Avri
> out_disable:
> hba->is_irq_enabled = false;
> --
> 2.17.1