forked from Minki/linux
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:
parent
aabd5fea49
commit
8e129add48
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user