diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-15 02:43:07 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-15 02:43:07 +0000 |
commit | 328ce03e55c2d802e1c83739d51c54bbcc92d87b (patch) | |
tree | 000714485313a4dbb535258ac81d2508c1375e4a /MdeModulePkg/Universal | |
parent | 21e3aefed2b24a3875a2d056164e46677089e4bb (diff) | |
download | edk2-platforms-328ce03e55c2d802e1c83739d51c54bbcc92d87b.tar.xz |
Add code check to avoid access violation.
Signed-off-by: ydong10
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13014 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c index 331f9d8d22..0853f98767 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c @@ -403,6 +403,7 @@ IScsiReceiveLoginRsp ( //
// A Login Response is received, process it.
//
+ ASSERT (Pdu != NULL);
Status = IScsiProcessLoginRsp (Conn, Pdu);
NetbufFree (Pdu);
|