diff options
author | Arnd Bergmann <[email protected]> | 2021-09-20 11:56:22 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-09-22 00:16:38 -0400 |
commit | a38923f2d088d1a5cbaa86818abe039b2f87093d (patch) | |
tree | 1e1e5667a78e9ba63efa3b4e28b4ae7838c73720 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 6dacc371b77f473770ec646e220303a84fe96c11 (diff) |
scsi: lpfc: Fix gcc -Wstringop-overread warning, again
I fixed a stringop-overread warning earlier this year, now a second copy of
the original code was added and the warning came back:
drivers/scsi/lpfc/lpfc_attr.c: In function 'lpfc_cmf_info_show':
drivers/scsi/lpfc/lpfc_attr.c:289:25: error: 'strnlen' specified bound 4095 exceeds source size 24 [-Werror=stringop-overread]
289 | strnlen(LPFC_INFO_MORE_STR, PAGE_SIZE - 1),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fix it the same way as the other copy.
Link: https://lore.kernel.org/r/[email protected]
Fixes: ada48ba70f6b ("scsi: lpfc: Fix gcc -Wstringop-overread warning")
Fixes: 74a7baa2a3ee ("scsi: lpfc: Add cmf_info sysfs entry")
Reviewed-by: James Smart <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions