Commit df1be652 authored by Zongjie Li's avatar Zongjie Li Committed by Greg Kroah-Hartman
Browse files

fbdev: arcfb: Fix error handling in arcfb_probe()



[ Upstream commit 5a6bef73 ]

Smatch complains that:
arcfb_probe() warn: 'irq' from request_irq() not released on lines: 587.

Fix error handling in the arcfb_probe() function. If IO addresses are
not provided or framebuffer registration fails, the code will jump to
the err_addr or err_register_fb label to release resources.
If IRQ request fails, previously allocated resources will be freed.

Fixes: 1154ea7d ("[PATCH] Framebuffer driver for Arc LCD board")
Signed-off-by: default avatarZongjie Li <u202112089@hust.edu.cn>
Reviewed-by: default avatarDongliang Mu <dzm91@hust.edu.cn>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bd6b3536
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment