FmpDevicePkg FmpDxe: Check ImageIndex first before Image/ImageSize
authorStar Zeng <star.zeng@intel.com>
Sat, 28 Jul 2018 01:22:03 +0000 (09:22 +0800)
committerKinney, Michael D <michael.d.kinney@intel.com>
Thu, 2 Aug 2018 21:46:19 +0000 (14:46 -0700)
commitebfac291bd0e57f1ef452fb2f3a402738165bf3b
tree1e45e3a7dd1869ca11892079693edb69ff175b48
parentb1be077fa4e1c5fc61ec0df0c9691bd07943406a
FmpDevicePkg FmpDxe: Check ImageIndex first before Image/ImageSize

It does not make sense to check the Image/ImageSize if ImageIndex
has been invalid.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
FmpDevicePkg/FmpDxe/FmpDxe.c