]> 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>
Sat, 17 Jan 2026 15:31:16 +0000 (16:31 +0100)
commitbc96db7051ccce1a18ea5c7e69925f8420192dfd
tree6cf5a641b1fea724a3301c6b7878a6012c2dd87f
parent90b4b130a20d80decfc9b115c187f818ab83a30a
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