mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 09:13:55 +08:00
ASoC: intel: sst: Handle return value of platform_get_irq
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
56fa898be8
commit
eee44bfcf9
@ -236,6 +236,9 @@ static int sst_platform_get_resources(struct intel_sst_drv *ctx)
|
||||
/* Find the IRQ */
|
||||
ctx->irq_num = platform_get_irq(pdev,
|
||||
ctx->pdata->res_info->acpi_ipc_irq_index);
|
||||
if (ctx->irq_num <= 0)
|
||||
return ctx->irq_num < 0 ? ctx->irq_num : -EIO;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user