hsa: fix coverity issue CID-313635