]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/pl111: Fix error handling in pl111_amba_probe
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 11 Dec 2025 12:33:44 +0000 (16:33 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:10:14 +0000 (13:10 +0100)
commit6a0cceb1a8b9e73a207b2ac03da03ccb8d17edaf
treeeab4793dd208ac45cae3204de94658f51416701f
parent250e1f9f911d59613127de9e238c1b26c07820f2
drm/pl111: Fix error handling in pl111_amba_probe

commit 0ddd3bb4b14c9102c0267b3fd916c81fe5ab89c1 upstream.

Jump to the existing dev_put label when devm_request_irq() fails
so drm_dev_put() and of_reserved_mem_device_release() run
instead of returning early and leaking resources.

Found via static analysis and code review.

Fixes: bed41005e617 ("drm/pl111: Initial drm/kms driver for pl111")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20251211123345.2392065-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/pl111/pl111_drv.c