]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SdDxe: Fix potential NULL pointer access
authorJeff Brasen <jbrasen@nvidia.com>
Fri, 16 Nov 2018 08:09:48 +0000 (16:09 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 19 Nov 2018 01:09:05 +0000 (09:09 +0800)
commit5a16ba3ae18e6528cb83039951e15a4b76004949
treeb614cf784707e1ca986bc90affe2d8460d5d2c59
parent90fa59f6857388231688675813fa43e068267214
MdeModulePkg/SdDxe: Fix potential NULL pointer access

SdReadWrite can be called with a NULL Token for synchronous operations.
Add guard for DEBUG print to only print event pointer with Token is not
NULL.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Sd/SdDxe/SdBlockIo.c