]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: ti: vpe: Fix the error code of devm_request_irq()
authorFelix Gu <ustc.gu@gmail.com>
Tue, 17 Mar 2026 17:21:54 +0000 (01:21 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 5 May 2026 14:57:02 +0000 (16:57 +0200)
Return the actual error code from devm_request_irq() instead of
incorrectly returning -ENOMEM.

Fixes: fc2873aa4a21 ("media: ti: vpe: Add the VIP driver")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/ti/vpe/vip.c

index a3c5e966f64cab91562661a0162cf4350a6552e3..bd34c982b4277cf634611841d02e9bbb7950d201 100644 (file)
@@ -3472,7 +3472,7 @@ static int vip_probe_slice(struct platform_device *pdev, int slice)
        ret = devm_request_irq(&pdev->dev, dev->irq, vip_irq,
                               0, VIP_MODULE_NAME, dev);
        if (ret < 0)
-               return -ENOMEM;
+               return ret;
 
        spin_lock_init(&dev->slock);
        mutex_init(&dev->mutex);