mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
fix: avoid null pointer dereference
Related-To: NEO-12651 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7b54ca131f
commit
cb62e31828
@@ -86,6 +86,7 @@ std::vector<EuThread::ThreadId> L0GfxCoreHelperHw<Family>::getThreadsFromAttenti
|
|||||||
return threads;
|
return threads;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UNRECOVERABLE_IF(!bitmask);
|
||||||
std::bitset<8> bits(bitmask[offset]);
|
std::bitset<8> bits(bitmask[offset]);
|
||||||
for (uint32_t i = 0; i < 8; i++) {
|
for (uint32_t i = 0; i < 8; i++) {
|
||||||
if (bits.test(i)) {
|
if (bits.test(i)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user