fs: partitions: efi: Fix bound check
authorAntti P Miettinen <amiettinen@nvidia.com>
Tue, 5 Nov 2013 18:30:10 +0000 (20:30 +0200)
committerHiroshi Doyu <hdoyu@nvidia.com>
Wed, 6 Nov 2013 07:15:43 +0000 (23:15 -0800)
commitc849795ceb9735c07685c01a7b1a855e336dbb51
treed79c7dbbdbd87d6b92ae25934e4a30e102522fc0
parent1c101e8634a0b0145ed509a6123da4a56b12fd79
fs: partitions: efi: Fix bound check

Use ARRAY_SIZE instead of sizeof to get proper max for label
length.

Bug 1401569

Change-Id: I98cfcca33bb8da18a791750ba8fa85d76a9afc05
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/326759
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
block/partitions/efi.c