summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAshok Reddy Soma <[email protected]>2022-02-23 15:00:57 +0100
committerMichal Simek <[email protected]>2022-03-07 08:48:21 +0100
commit90e8f2db60a1e49526f053876925741682da96ab (patch)
tree645272da58ac9ea924ada8dd28b4e1553aaa5afb /scripts
parent952b2e60de6d6a80f35878193649b49ae2e14df9 (diff)
fru: ops: Return error from checksum if data is all zero's
fru_checksum function is simply adding all the bytes and returning the sum. If the data passed to this function is all zero's then it will return 0, and the functions calling this api will assume that checksum is correct. Ideally this is not good. Fix this by returning error if all the data is 0's. Signed-off-by: Ashok Reddy Soma <[email protected]> Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/ac0366fe55c60a818a3f9ed33d96826c817d5520.1645624855.git.michal.simek@xilinx.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions