diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-07-01 08:34:15 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-07-01 08:34:15 +0200 |
commit | 498386d1c4d98a72db7a2f51473593ad563b45ae (patch) | |
tree | f94e6b211b9a50106e6e047cd992ae3e209ef007 /sound/mips/snd-n64.c | |
parent | MAINTAINERS: remove Timur Tabi from Freescale SOC sound drivers (diff) | |
parent | ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook 830 G8 Notebook PC (diff) | |
download | linux-498386d1c4d98a72db7a2f51473593ad563b45ae.tar.xz linux-498386d1c4d98a72db7a2f51473593ad563b45ae.zip |
Merge branch 'for-next' into for-linus
Diffstat (limited to 'sound/mips/snd-n64.c')
-rw-r--r-- | sound/mips/snd-n64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/mips/snd-n64.c b/sound/mips/snd-n64.c index e35e93157755..463a6fe589eb 100644 --- a/sound/mips/snd-n64.c +++ b/sound/mips/snd-n64.c @@ -338,6 +338,10 @@ static int __init n64audio_probe(struct platform_device *pdev) strcpy(card->longname, "N64 Audio"); res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); + if (!res) { + err = -EINVAL; + goto fail_dma_alloc; + } if (devm_request_irq(&pdev->dev, res->start, n64audio_isr, IRQF_SHARED, "N64 Audio", priv)) { err = -EBUSY; |