From 6ccfeec24c9f5d39304db7835a5a771fd01eee3f Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Wed, 13 Dec 2017 16:06:42 +0800 Subject: MdeModulePkg/IpIoLib: Check the input parameters before use them. This patch updates the DxeIpIoLib to check the input parameters before using. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-by: Jiaxin Wu --- MdeModulePkg/Include/Library/IpIoLib.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'MdeModulePkg/Include') diff --git a/MdeModulePkg/Include/Library/IpIoLib.h b/MdeModulePkg/Include/Library/IpIoLib.h index bae7113407..463bf95b49 100644 --- a/MdeModulePkg/Include/Library/IpIoLib.h +++ b/MdeModulePkg/Include/Library/IpIoLib.h @@ -359,8 +359,9 @@ IpIoDestroy ( @param[in, out] IpIo The pointer to the IP_IO instance that needs to stop. - @retval EFI_SUCCESS The IP_IO instance stopped successfully. - @retval Others Anrror condition occurred. + @retval EFI_SUCCESS The IP_IO instance stopped successfully. + @retval EFI_INVALID_PARAMETER Invalid input parameter. + @retval Others Anrror condition occurred. **/ EFI_STATUS @@ -381,12 +382,13 @@ IpIoStop ( @param[in] OpenData The configuration data and callbacks for the IP_IO instance. - @retval EFI_SUCCESS The IP_IO instance opened with OpenData - successfully. - @retval EFI_ACCESS_DENIED The IP_IO instance is configured; avoid - reopening it. - @retval EFI_UNSUPPORTED IPv4 RawData mode is no supported. - @retval Others An error condition occurred. + @retval EFI_SUCCESS The IP_IO instance opened with OpenData + successfully. + @retval EFI_ACCESS_DENIED The IP_IO instance is configured, avoid to + reopen it. + @retval EFI_UNSUPPORTED IPv4 RawData mode is no supported. + @retval EFI_INVALID_PARAMETER Invalid input parameter. + @retval Others Error condition occurred. **/ EFI_STATUS @@ -522,7 +524,7 @@ IpIoRemoveIp ( @param[in] Src The local IP address. @return The pointer to the IP protocol can be used for sending purpose and its local - address is the same with Src. + address is the same with Src. NULL if failed. **/ IP_IO_IP_INFO * -- cgit v1.2.3