Re: [PATCH] scsi: pm8001: Fix error code in non_fatal_log_show()

"Martin K. Petersen" <[email protected]> Mon, 8 Jun 2026 21:39:00 -0400
Newsgroups org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel,org.kernel.vger.linux-scsi
Message-ID <[email protected]>
On Sat, 30 May 2026 22:45:48 +0300, Dan Carpenter wrote:

> The non_fatal_log_show() function is supposed to return negative
> error codes on failure.  But because the error codes are saved in
> a u32 and then cast to signed long, they end up being high positive
> values instead of negative.  Remove the intermediary u32 variable
> to fix this bug.
> 
> 
> [...]

Applied to 7.2/scsi-queue, thanks!

[1/1] scsi: pm8001: Fix error code in non_fatal_log_show()
      https://git.kernel.org/mkp/scsi/c/1b6f03b7ae9e

-- 
Martin K. Petersen