]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UdfDxe: Use error handling when fail to return LSN
authorHao Wu <hao.a.wu@intel.com>
Sat, 29 Sep 2018 05:03:50 +0000 (13:03 +0800)
committerHao Wu <hao.a.wu@intel.com>
Thu, 18 Oct 2018 01:12:43 +0000 (09:12 +0800)
commit6086569e7ee7f4787fc96c72d253174469058f11
treef070f33a87d70d70109fa5fbf0120c63f281f24e
parent5fb22f5920039393f74030c74c216517a131dbe0
MdeModulePkg/UdfDxe: Use error handling when fail to return LSN

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1248

This commit will refine the ASSERTs in function GetLongAdLsn() and
GetAllocationDescriptorLsn() when the logical sector number cannot be
returned due to unrecognized media format.

Error handling logic will be used for those ASSERTs.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c