diff options
| author | Harshit Mogalapalli <[email protected]> | 2024-01-02 08:52:45 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2024-01-12 02:26:26 +0000 |
| commit | 567a1e852e872e702b18d271a3dbce2a75efbaff (patch) | |
| tree | b2e77f323fcadf3bd0866b61cde10d0cb89a61fc /drivers/gpu/drm/amd/amdgpu/atom.c | |
| parent | scsi: mpi3mr: Fix mpi3mr_fw.c kernel-doc warnings (diff) | |
| download | kernel-567a1e852e872e702b18d271a3dbce2a75efbaff.tar.gz kernel-567a1e852e872e702b18d271a3dbce2a75efbaff.zip | |
scsi: fcoe: Fix unsigned comparison with zero in store_ctlr_mode()
ctlr->mode is of unsigned type, it is never less than zero.
Fix this by using an extra variable called 'res', to store return value
from sysfs_match_string() and assign that to ctlr->mode on the success
path.
Fixes: edc22a7c8688 ("scsi: fcoe: Use sysfs_match_string() over fcoe_parse_mode()")
Signed-off-by: Harshit Mogalapalli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions
