summaryrefslogtreecommitdiffstats
path: root/sound/mips/snd-n64.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-07-01 08:34:15 +0200
committerTakashi Iwai <tiwai@suse.de>2021-07-01 08:34:15 +0200
commit498386d1c4d98a72db7a2f51473593ad563b45ae (patch)
treef94e6b211b9a50106e6e047cd992ae3e209ef007 /sound/mips/snd-n64.c
parentMAINTAINERS: remove Timur Tabi from Freescale SOC sound drivers (diff)
parentALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook 830 G8 Notebook PC (diff)
downloadlinux-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.c4
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;