]> git.baikalelectronics.ru Git - uboot.git/commit
fru: ops: Do not let parser to write data to not allocated space
authorMichal Simek <michal.simek@xilinx.com>
Fri, 6 Nov 2020 12:55:45 +0000 (13:55 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 20 Nov 2020 09:42:54 +0000 (10:42 +0100)
commitf2fd2ee8e1234064841f638e4f0c17a63fc40977
tree1320ec1287fab68b6842673496d749643d61872a
parent1b1668a82d54dcb5803cacef753335ca64a5c6da
fru: ops: Do not let parser to write data to not allocated space

If customs fields in board area are used it will likely go over allocated
space in struct fru_board_data. That's why calculate limit of this
structure to make sure that different data is not rewritten by accident.
When limit is reached stop to record fields.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/common/fru_ops.c