Re: [PATCH] scsi: lpfc: use correct scnprintf() limit
From: James Smart <hidden>
Date: 2021-09-16 20:22:29
Also in:
linux-scsi
From: James Smart <hidden>
Date: 2021-09-16 20:22:29
Also in:
linux-scsi
On 9/16/2021 6:23 AM, Dan Carpenter wrote:
The limit should be "PAGE_SIZE - len" instead of "PAGE_SIZE".
We're not going to hit the limit so this fix will not affect runtime.
Fixes: 5b9e70b22cc5 ("scsi: lpfc: raise sg count for nvme to use available sg resources")
Signed-off-by: Dan Carpenter <redacted>
---
drivers/scsi/lpfc/lpfc_attr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)looks good. Thank you Reviewed-by: James Smart <redacted> -- james