]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UsbBusDxe: Add missing "return NULL" in UsbCreateDesc()
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 29 Oct 2018 03:54:45 +0000 (11:54 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 30 Oct 2018 01:17:40 +0000 (09:17 +0800)
commitc87ac38cf280fa969f1033de3c5b7a157aac8cbc
tree11fb1a0aeb7a9fd6eaaebb7a7e6f2cdad161ad68
parentc09b254bdc6050cc8b580a26558f692f958645d6
MdeModulePkg/UsbBusDxe: Add missing "return NULL" in UsbCreateDesc()

When (Len < Offset) is TRUE, indicating the data to visit is beyond
the boundary, the error message is printed but the function doesn't
return NULL.

It's a typo when modifying the commit 4c034bf62.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c