Re: [PATCH] serial: sh-sci: fix memory region release in error path

From: Greg KH

Date: Fri Apr 10 2026 - 06:57:04 EST


On Fri, Apr 10, 2026 at 05:21:43PM +0800, zenghongling wrote:
> 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().
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>

The kernel test robot reported this? Where is that report?

> Signed-off-by: zenghongling <zenghongling@xxxxxxxxxx>

Can you use your name please, not your email alias.

thanks,

greg k-h