Re: [PATCH] scsi: pm8001: Fix error code in non_fatal_log_show()
From: Martin K. Petersen
Date: Mon Jun 01 2026 - 21:57:08 EST
Dan,
> 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-staging, thanks!
--
Martin K. Petersen