net: hns3: add some error checking in hclge_tm module