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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user