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

From: Martin K. Petersen

Date: Mon Jun 08 2026 - 21:40:34 EST


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