Skip to content

Commit

Permalink
Nullify using the max size
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnick committed Jul 31, 2024
1 parent 8825a5f commit c0c95e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/cpu_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void Memory::load(const IMemory& src, bool ftz) const {
void Memory::nullify() {
void* dataPtr = getData();
if (dataPtr != nullptr)
memset(dataPtr, 0, getDesc().getCurrentMemSize());
memset(dataPtr, 0, getDesc().getMaxMemSize());
}

void Memory::redefineDesc(MemoryDescPtr desc) {
Expand Down

0 comments on commit c0c95e0

Please sign in to comment.