Do not assert when the device path node length is invalid.
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 23 Dec 2014 09:56:33 +0000 (09:56 +0000)
committerniruiyu <niruiyu@Edk2>
Tue, 23 Dec 2014 09:56:33 +0000 (09:56 +0000)
commit0b13fe741b7221514da510c165a55e47a3d377b2
treeb1454d8382be104fefdbe2e5fc70c2a15e1ecd5f
parente4b0415d59d00eacc0ce4755ad6aaab80b16075c
Do not assert when the device path node length is invalid.

Because IsDevicePathValid() calls this API we should leave the device path validation in the caller.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16555 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c