]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/DxeNetLib: Fix a potential issue in macro definition.
authorWang Fan <fan.wang@intel.com>
Tue, 2 Jan 2018 02:56:44 +0000 (10:56 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Thu, 4 Jan 2018 02:55:14 +0000 (10:55 +0800)
commit2a2f01b9a08d82b9a0de8d893c4c845edaae81b8
treef7a44a22540e6cbf9acdad2c05a701a3587a09cb
parentbee14e9ebc8db1cfa5ead35834df9a9d02101bda
MdeModulePkg/DxeNetLib: Fix a potential issue in macro definition.

The NIC_ITEM_CONFIG_SIZE macro in DxeNetLib is defined as:
sizeof (NIC_IP4_CONFIG_INFO) + sizeof (EFI_IP4_ROUTE_TABLE) *
MAX_IP4_CONFIG_IN_VARIABLE. This macro should be surrounded
with parenthesis to avoid being incorrectly used.

Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wang Fan <fan.wang@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
MdeModulePkg/Library/DxeNetLib/DxeNetLib.c