partitions/efi: compare first and last usable LBAs
authorDavidlohr Bueso <davidlohr@hp.com>
Wed, 11 Sep 2013 21:25:01 +0000 (14:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:59:18 +0000 (15:59 -0700)
commitaa054bc93743ecce3a27f1655d59674dabc71a54
treeef4a3d6042ce1ae5554cea6c29e2aca6c230f5dd
parent27a7c642174eaec627f6a3a254035bf8abd02c5e
partitions/efi: compare first and last usable LBAs

When verifying GPT header integrity, make sure that first usable LBA is
smaller than last usable LBA.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Reviewed-by: Karel Zak <kzak@redhat.com>
Acked-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
block/partitions/efi.c