intel / intel-device-plugins-for-kubernetes

Collection of Intel device plugins for Kubernetes
Apache License 2.0
48 stars 205 forks source link

levelzero: add missing calloc return value check #1844

Closed tkatila closed 2 months ago

tkatila commented 2 months ago

Static scan notified that calloc's return value wasn't checked.

tkatila commented 2 months ago

PS. There could be some define (e.g TEMP_ERROR_RET_VAL) in header for this magic value used (many times) in code: return -999.0;

That's a good point. I'll add it.

Sadly, Github's workers seem to be misbehaving today.