From: Felix Gu Date: Tue, 17 Mar 2026 17:21:54 +0000 (+0800) Subject: media: ti: vpe: Fix the error code of devm_request_irq() X-Git-Tag: v7.2-rc1~101^2~353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e78a431a3f74c632351791d7902c60199d1ce83;p=thirdparty%2Fkernel%2Fstable.git media: ti: vpe: Fix the error code of devm_request_irq() 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 Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/ti/vpe/vip.c b/drivers/media/platform/ti/vpe/vip.c index a3c5e966f64ca..bd34c982b4277 100644 --- a/drivers/media/platform/ti/vpe/vip.c +++ b/drivers/media/platform/ti/vpe/vip.c @@ -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);