summaryrefslogtreecommitdiffstats
path: root/core/flash-subpartition.c
Commit message (Collapse)AuthorAgeFilesLines
* core/flash: NULL pointer dereference fixesNicholas Piggin2018-10-231-6/+9
| | | | | | | These were caught with unmapped memory dereference page faults. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* core/flash-subpartition.c: remove toc var to clean-upClaudio Carvalho2016-11-021-3/+1
| | | | | | | This removes the toc var. It is allocated in the function, but not used. Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* flash-subpartition: fix spurious non-NULL check of non-NULL variableStewart Smith2016-10-281-2/+0
| | | | | | | | | In flash_subpart_info, part_actual can't be NULL (we bail out if so), so this spurious check just manages to trigger warning in static analysis. Fixes: 8652ced003f7977e1126149b8011c184b88fe24e Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* core/flash-subpartition: compute partition size from subpartition structStewart Smith2016-10-251-34/+52
| | | | | | | | | | | | | From the subpartition structure, we have the ability to compute the full partition size. Do that. This lets us only read the amount of a subpartition that is valid and needed to be read, rather than having to read the entire thing. We continue the current behaviour of loading flash partitions though. Based-on-patch-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* core/flash: Move subpartition locating logic out into own file, add testsStewart Smith2016-10-251-0/+102
A unit test for parsing sub-partition info is useful for a number of reasons, one of which showed its head during development of secure/trusted boot. This patch just moves things around, there's no functional changes. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud