Merge branch 'for-5.14' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[linux-2.6-microblaze.git] / sound / mips / snd-n64.c
index e35e931..463a6fe 100644 (file)
@@ -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;