summaryrefslogtreecommitdiff
path: root/drivers/ddr/microchip/ddr2.c
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2022-05-31 12:45:33 +0530
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-06-04 08:43:55 +0200
commit6a463bc1c9bde3326825369061803d281cf423d8 (patch)
tree8cdcf5300209e5e5dd3ab243d35a6b79ddc67c43 /drivers/ddr/microchip/ddr2.c
parentf1533c41a78a1defe147c87142ebfeb25b4c46ed (diff)
EFI: Populate descriptor_count value only when image_info_size is not zero
The GetImageInfo function of the Firmware Mangement Protocol(FMP) gets called initially to query the size of the image descriptor array that would have to be allocated. During this call, the rest of the function arguments, specifically pointers might be passed as NULL. Do not populate the descriptor_count value before it is known that the call to GetImageInfo has been made with the allocated buffer for the image descriptors. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'drivers/ddr/microchip/ddr2.c')
0 files changed, 0 insertions, 0 deletions