diff options
author | Ashok Reddy Soma | 2022-02-23 15:00:56 +0100 |
---|---|---|
committer | Michal Simek | 2022-03-07 08:48:21 +0100 |
commit | 952b2e60de6d6a80f35878193649b49ae2e14df9 (patch) | |
tree | 95b309686d737c2a46d5f2f01cd757c8b7806be1 /board/xilinx | |
parent | 6d3c46ed0e230d999c3f20f7fd4f3a88c03b14ca (diff) |
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
Diffstat (limited to 'board/xilinx')
-rw-r--r-- | board/xilinx/common/fru_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/xilinx/common/fru_ops.c b/board/xilinx/common/fru_ops.c index 6ed63bb7ee1..a0a1441a8ee 100644 --- a/board/xilinx/common/fru_ops.c +++ b/board/xilinx/common/fru_ops.c @@ -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)); |