Skip to content

Commit 6fd8f32

Browse files
Zhen Leiachrisan
authored andcommitted
drm/kmb: Fix error return code in kmb_hw_init()
When the call to 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: 7f7b96a ("drm/kmb: Add support for KeemBay Display") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zhen Lei <[email protected]> Signed-off-by: Anitha Chrisanthus <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 8ddf5b9 commit 6fd8f32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/kmb/kmb_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ static int kmb_hw_init(struct drm_device *drm, unsigned long flags)
137137
/* Allocate LCD interrupt resources */
138138
irq_lcd = platform_get_irq(pdev, 0);
139139
if (irq_lcd < 0) {
140+
ret = irq_lcd;
140141
drm_err(&kmb->drm, "irq_lcd not found");
141142
goto setup_fail;
142143
}

0 commit comments

Comments
 (0)