Files
linux-stable-mirror/drivers
Dan CarpenterandGreg Kroah-Hartman c4550c7482 scsi: pm8001: Fix error code in non_fatal_log_show()
[ Upstream commit 1b6f03b7ae ]

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.

Fixes: dba2cc03b9 ("scsi: pm80xx: sysfs attribute for non fatal dump")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://patch.msgid.link/ahs-bEsBJH0KhnsX@stanley.mountain
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-07-24 15:54:38 +02:00
..
2026-07-24 15:54:34 +02:00
2026-07-24 15:54:37 +02:00
2026-06-19 13:37:09 +02:00