drm/kmb: Fix error return code in kmb_hw_init()
Subsystems (2)
PATCH 1/1 drm/kmb: Fix error return code in kmb_hw_init()
When call platform_get_irq() to obtain the IRQ of the lcd fails, the returned error code should be propagated. However, we currently do not explicitly assign this error code to 'ret'. As a result, 0 was incorrectly returned.
--- drivers/gpu/drm/kmb/kmb_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/kmb/kmb_drv.c +1 -0
@@ -137,6 +137,7 @@ static int kmb_hw_init(struct drm_device *drm, unsigned long flags)/* Allocate LCD interrupt resources */ irq_lcd =platform_get_irq (pdev,0 );if (irq_lcd <0 ) { + ret = irq_lcd;drm_err (&kmb->drm,"irq_lcd not found" ); goto setup_fail; }
Signature · 1 line
2.26.0.106.g9fadedd
Thanks for the patch.
Quoted 39 lines
-----Original Message-----
From: Zhen Lei <[email protected]>
Sent: Thursday, May 13, 2021 6:47 AM
To: Chrisanthus, Anitha <[email protected]>; Dea, Edmund J <[email protected]>; David Airlie <[email protected]>; Daniel Vetter <[email protected]>; Sam Ravnborg <[email protected]>; dri-devel <dri- [email protected]>
Cc: Zhen Lei <[email protected]>
Subject: [PATCH 1/1] drm/kmb: Fix error return code inkmb_hw_init()When call
platform_get_irq()to obtain the IRQ of the lcd fails, the returned error code should be propagated. However, we currently do not explicitly assign this error code to 'ret'. As a result, 0 was incorrectly returned.Fixes 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display")Reported-by Hulk Robot <[email protected]>Signed-off-by Zhen Lei <[email protected]>--- drivers/gpu/drm/kmb/kmb_drv.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/kmb/kmb_drv.c +1
-0@@ -137,6 +137,7 @@ static int kmb_hw_init(struct drm_device *drm, unsigned long flags)/* Allocate LCD interrupt resources */ irq_lcd =platform_get_irq (pdev,0 );if (irq_lcd <0 ) { + ret = irq_lcd;drm_err (&kmb->drm,"irq_lcd not found" ); goto setup_fail;}
--
2.26.0.106.g9fadedd
Chrisanthus, Anitha
maintainerThanks for the patch. Patch pushed to drm-misc-fixes.
Anitha
Quoted 52 lines
-----Original Message-----
From: Chrisanthus, Anitha
Sent: Thursday, May 13, 2021 10:12 AM
To: Zhen Lei <[email protected]>; Dea, Edmund J <[email protected]>; David Airlie <[email protected]>; Daniel Vetter <[email protected]>; Sam Ravnborg <[email protected]>; dri-devel <dri- [email protected]>
Subject: RE: [PATCH 1/1] drm/kmb: Fix error return code inkmb_hw_init()Thanks for the patch.
Reviewed-by Anitha Chrisanthus <[email protected]>Quoted 39 lines
-----Original Message-----
From: Zhen Lei <[email protected]>
Sent: Thursday, May 13, 2021 6:47 AM
To: Chrisanthus, Anitha <[email protected]>; Dea, Edmund J <[email protected]>; David Airlie <[email protected]>; Daniel Vetter <[email protected]>; Sam Ravnborg <[email protected]>; dri-devel <dri- [email protected]>
Cc: Zhen Lei <[email protected]>
Subject: [PATCH 1/1] drm/kmb: Fix error return code inkmb_hw_init()When call
platform_get_irq()to obtain the IRQ of the lcd fails, the returned error code should be propagated. However, we currently do not explicitly assign this error code to 'ret'. As a result, 0 was incorrectly returned.Fixes 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display")Reported-by Hulk Robot <[email protected]>Signed-off-by Zhen Lei <[email protected]>--- drivers/gpu/drm/kmb/kmb_drv.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/kmb/kmb_drv.c +1
-0@@ -137,6 +137,7 @@ static int kmb_hw_init(struct drm_device *drm, unsigned long flags)/* Allocate LCD interrupt resources */ irq_lcd =platform_get_irq (pdev,0 );if (irq_lcd <0 ) { + ret = irq_lcd;drm_err (&kmb->drm,"irq_lcd not found" ); goto setup_fail;}
--
2.26.0.106.g9fadedd