public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Guoheyi <guoheyi@huawei.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: Feng Tian <feng.tian@intel.com>, Star Zeng <star.zeng@intel.com>
Subject: [MdeModulePkg/Ip4Dxe] Is it a bug in Ip4Input.c?
Date: Thu, 23 Mar 2017 02:44:30 +0000	[thread overview]
Message-ID: <B328F08581D714418202ABF306D3781C3AC0A817@DGGEMA505-MBS.china.huawei.com> (raw)

Hi folks,

In MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Inpu.c, line #666~672, temporary variable Packet is set but not used, nor it is referred by any event. Is it a bug or just something useless?

666     if (Packet == NULL) {
667       Packet = IpSecWrap->Packet;           // Packet is set here, but not used any more.
668       gBS->SignalEvent (RecycleEvent);
669       FreePool (IpSecWrap);
670       Status = EFI_OUT_OF_RESOURCES;
671       goto ON_EXIT;                        // function will return on ON_EXIT
672     }


Please advise.

Thanks and regards,

Gary (Heyi Guo)


             reply	other threads:[~2017-03-23  2:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-23  2:44 Guoheyi [this message]
2017-03-23  2:51 ` [MdeModulePkg/Ip4Dxe] Is it a bug in Ip4Input.c? Zeng, Star
2017-03-23  5:12 ` Fu, Siyuan
2017-03-23  5:38   ` 答复: " Guoheyi
2017-03-23  5:41     ` Fu, Siyuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B328F08581D714418202ABF306D3781C3AC0A817@DGGEMA505-MBS.china.huawei.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox