diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-09-16 16:22:51 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-09-22 00:14:34 -0400 |
commit | cdbc16c552f27ac211a44f9959d813b4f3188223 (patch) | |
tree | e0e8823594426015dcf88de93b016f480d7d32d3 /tools/testing/selftests/bpf/prog_tests/recursion.c | |
parent | a4869faf9642518145a8aa4b52e0d5ab0e7ee896 (diff) |
scsi: lpfc: Fix sprintf() overflow in lpfc_display_fpin_wwpn()
This scnprintf() uses the wrong limit. It should be
"LPFC_FPIN_WWPN_LINE_SZ - len" instead of LPFC_FPIN_WWPN_LINE_SZ.
Link: https://lore.kernel.org/r/20210916132251.GD25094@kili
Fixes: 428569e66fa7 ("scsi: lpfc: Expand FPIN and RDF receive logging")
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions