SWDEV-419996 - Allow both kernelParams and extra arguments to be set to null

When kernel function expects no parameters no error should be returned
if both kernelParams and extra arguments are set to null.

Change-Id: I5941bcc400b6fb380e623bdae0233ae3e4f73815
This commit is contained in:
Ioannis Assiouras
2023-08-31 15:55:58 +01:00
parent 7be3a5e33e
commit 315082e554
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -920,7 +920,7 @@ class GraphKernelNode : public GraphNode {
kernelParams_.kernelParams = nullptr;
}
// Deallocate memory allocated for kernargs passed via 'extra'
else {
else if (kernelParams_.extra != nullptr) {
free(kernelParams_.extra[1]);
free(kernelParams_.extra[3]);
memset(kernelParams_.extra, 0, 5 * sizeof(kernelParams_.extra[0])); // 5 items