Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
- if (mUsb3Instance->Ready && (mUsb3Instance->PciIoEvent == 0)) {\r
+ if ((mUsb3Instance != NULL) && mUsb3Instance->Ready && (mUsb3Instance->PciIoEvent == 0)) {\r
Status = Usb3NamedEventListen (\r
&gEfiPciIoProtocolGuid,\r
TPL_NOTIFY,\r
Status = Usb3NamedEventListen (\r
&gEfiPciIoProtocolGuid,\r
TPL_NOTIFY,\r