Re: [PATCH] scsi: fcoe: Fix unsigned comparison with zero in store_ctlr_mode()
From: Martin K. Petersen
Date: Wed Jan 17 2024 - 15:11:01 EST
On Tue, 02 Jan 2024 00:52:45 -0800, Harshit Mogalapalli wrote:
> ctlr->mode is of unsigned type, it is never less than zero.
>
> Fix this by using an extra varibale called 'res', to store return value
> from sysfs_match_string() and assign that to ctlr->mode on the success
> path.
>
>
> [...]
Applied to 6.8/scsi-queue, thanks!
[1/1] scsi: fcoe: Fix unsigned comparison with zero in store_ctlr_mode()
https://git.kernel.org/mkp/scsi/c/567a1e852e87
--
Martin K. Petersen Oracle Linux Engineering