diff options
author | Andy Shevchenko <[email protected]> | 2023-08-18 18:54:52 +0300 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-08-21 17:13:57 -0400 |
commit | 19d7102a953900560811498018bb2de4e27ee9d9 (patch) | |
tree | e0e469b1d46efe40b555aaaac6d16b40eab0d53c /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 04aff456af1833c62345a9551958993269eb88b1 (diff) |
scsi: lpfc: Do not abuse UUID APIs and LPFC_COMPRESS_VMID_SIZE
The lpfc_vmid_host_uuid is not defined as uuid_t and its usage is not the
same as for uuid_t operations (like exporting or importing). Hence replace
call to uuid_is_null() by respective memchr_inv() without abusing casting.
With that, replace LPFC_COMPRESS_VMID_SIZE with plain number and respective
sizeof() to make code robust to changes in the future, if any.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Justin Tee <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions