diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-10 15:19:58 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-07-11 07:26:13 +0200 |
commit | 45fcc058a75bf5d65cf4c32da44a252fbe873cd4 (patch) | |
tree | b1a99bbbb46915500176fea72b370b70c964002d | |
parent | fbdev: imxfb: switch to DEFINE_SIMPLE_DEV_PM_OPS (diff) | |
download | linux-45fcc058a75bf5d65cf4c32da44a252fbe873cd4.tar.xz linux-45fcc058a75bf5d65cf4c32da44a252fbe873cd4.zip |
fbdev: imxfb: Removed unneeded release_mem_region
Remove unnecessary release_mem_region from the error path to prevent
mem region from being released twice, which could avoid resource leak
or other unexpected issues.
Fixes: b083c22d5114 ("video: fbdev: imxfb: Convert request_mem_region + ioremap to devm_ioremap_resource")
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | drivers/video/fbdev/imxfb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c index 04f3bf30a529..385c4715c7b7 100644 --- a/drivers/video/fbdev/imxfb.c +++ b/drivers/video/fbdev/imxfb.c @@ -1043,7 +1043,6 @@ failed_cmap: failed_map: failed_ioremap: failed_getclock: - release_mem_region(res->start, resource_size(res)); failed_of_parse: kfree(info->pseudo_palette); failed_init: |