fix: Ensure after EU_CONTROL IOCTL, bitmask ptr is not null

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma
2024-02-22 14:22:50 +00:00
committed by Compute-Runtime-Automation
parent 1189d26ad2
commit 5c4be8df54
2 changed files with 2 additions and 0 deletions

View File

@@ -407,6 +407,7 @@ int DebugSessionLinuxXe::threadControlResumeAndStopped(const std::vector<EuThrea
if (euControl.cmd == DRM_XE_EUDEBUG_EU_CONTROL_CMD_STOPPED) {
bitmaskOut = std::move(bitmask);
UNRECOVERABLE_IF(bitmaskOut.get() == nullptr);
bitmaskSizeOut = euControl.bitmask_size;
}