fru: ops: Clear fru table before storing data
Fill fru table with 0's before using it, to avoid junk data. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/e5f15caf9c2102316e39f300d7c9c1ecb6be8439.1645624855.git.michal.simek@xilinx.com
This commit is contained in:
parent
6d3c46ed0e
commit
952b2e60de
@ -222,7 +222,7 @@ int fru_capture(unsigned long addr)
|
||||
}
|
||||
|
||||
hdr = (struct fru_common_hdr *)addr;
|
||||
|
||||
memset((void *)&fru_data, 0, sizeof(fru_data));
|
||||
memcpy((void *)&fru_data, (void *)hdr,
|
||||
sizeof(struct fru_common_hdr));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user