scsi: mpt3sas: Fix junk chars displayed while printing ChipName

Terminate string after copying 16 bytes of ChipName data from Manufacturing
Page0 to prevent %s from printing junk characters.

Link: https://lore.kernel.org/r/20220511072621.30657-1-sreekanth.reddy@broadcom.com
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Sreekanth Reddy 2022-05-11 12:56:20 +05:30 committed by Martin K. Petersen
parent aabd5fea49
commit 8e129add48

View File

@ -4753,7 +4753,7 @@ static void
_base_display_ioc_capabilities(struct MPT3SAS_ADAPTER *ioc)
{
int i = 0;
char desc[16];
char desc[17] = {0};
u32 iounit_pg1_flags;
u32 bios_version;