aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHongling Zeng <zenghongling@kylinos.cn>2026-04-21 14:57:37 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-11 17:02:32 +0200
commit92b1ea22454b08a39baef3a7290fb3ec50366616 (patch)
tree2ec24af88666ecbc42f6febf6f48993f1b2964bc /include
parent6fe472c1bbbe238e91141f7cabc1226e96a60d43 (diff)
serial: sh-sci: fix memory region release in error path
The sci_request_port() function uses request_mem_region() to reserve I/O memory, but in the error path when sci_remap_port() fails, it incorrectly calls release_resource() instead of release_mem_region(). This mismatch can cause resource accounting issues. Fix it by using the correct release function, consistent with sci_release_port(). Fixes: e2651647080930a1 ("serial: sh-sci: Handle port memory region reservations.") Cc: stable <stable@kernel.org> Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <error27@gmail.com> Closes: https://lore.kernel.org/r/202604032356.SzEjYkBC-lkp@intel.com/ Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20260421065737.724187-1-zenghongling@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions