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

"Martin K. Petersen" <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.scsi,gmane.linux.kernel.janitors
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.